package interfaz;

import dominio.*;
import integracion.*;
import java.awt.Component;
import java.io.IOException;
import java.sql.Date;
import java.sql.SQLException;
import java.sql.Time;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableColumn;

public class InformacionSistema extends javax.swing.JFrame {

    ControlEmpleado controlEmpleado;
    ControlEvento controlEvento;
    ControlClienteParticular controlClientePart;
    ControlClienteCompania controlClienteComp;
    ControlEmpleadoClientePart controlEmpleadoClientePart;
    ControlEmpleadoClienteComp controlEmpleadoClienteComp;
    ControlCotizacion controlCotizacion;
    private Component aviso;

    public InformacionSistema() {
        initComponents();
        this.setLocation(100, 10);
        this.validarCampos();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaEjecutivos = new javax.swing.JTable();
        mostrarEjecutivos = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        cedula = new javax.swing.JTextField();
        nombre = new javax.swing.JTextField();
        apellido = new javax.swing.JTextField();
        telefono = new javax.swing.JTextField();
        salario = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        limpiar = new javax.swing.JButton();
        insertarEjecutivo = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        nombreEjecutivo = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        salarioEjecutivo = new javax.swing.JLabel();
        telefonoEjecutivo = new javax.swing.JLabel();
        apellidoEjecutivo = new javax.swing.JLabel();
        eliminarEjecutivo = new javax.swing.JButton();
        cedulaEjecutivo = new javax.swing.JLabel();
        jPanel10 = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        nombre2 = new javax.swing.JTextField();
        apellido2 = new javax.swing.JTextField();
        telefono2 = new javax.swing.JTextField();
        salario2 = new javax.swing.JTextField();
        checkNombre = new javax.swing.JCheckBox();
        checkApellido = new javax.swing.JCheckBox();
        checkTelefono = new javax.swing.JCheckBox();
        checkSalario = new javax.swing.JCheckBox();
        jLabel17 = new javax.swing.JLabel();
        insertarEjecutivo1 = new javax.swing.JButton();
        cedulaEjecutivo2 = new javax.swing.JLabel();
        jLabel96 = new javax.swing.JLabel();
        jComboBoxEstatusEjecutivo = new javax.swing.JComboBox();
        checkEstatusEjecutivo = new javax.swing.JCheckBox();
        jPanel2 = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tablaContratados = new javax.swing.JTable();
        mostrarContratados = new javax.swing.JButton();
        jPanel12 = new javax.swing.JPanel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        cedulaC = new javax.swing.JTextField();
        nombreC = new javax.swing.JTextField();
        apellidoC = new javax.swing.JTextField();
        telefonoC = new javax.swing.JTextField();
        cargo = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        costo = new javax.swing.JTextField();
        limpiar1 = new javax.swing.JButton();
        insertarEjecutivo2 = new javax.swing.JButton();
        jPanel13 = new javax.swing.JPanel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        nombreContratado = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        apellidoContratado = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        telefonoContratado = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        cargoContratado = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        costoContratado = new javax.swing.JLabel();
        eliminarEjecutivo1 = new javax.swing.JButton();
        cedulaContratado = new javax.swing.JLabel();
        jPanel14 = new javax.swing.JPanel();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        nombreC2 = new javax.swing.JTextField();
        apellidoC2 = new javax.swing.JTextField();
        telefonoC2 = new javax.swing.JTextField();
        cargo2 = new javax.swing.JTextField();
        checkNombreC = new javax.swing.JCheckBox();
        checkApellidoC = new javax.swing.JCheckBox();
        checkTelefonoC = new javax.swing.JCheckBox();
        checkCargo = new javax.swing.JCheckBox();
        jLabel34 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        costo2 = new javax.swing.JTextField();
        checkCosto = new javax.swing.JCheckBox();
        insertarEjecutivo3 = new javax.swing.JButton();
        cedulaC2 = new javax.swing.JLabel();
        jLabel107 = new javax.swing.JLabel();
        jComboBoxEstatusContratado = new javax.swing.JComboBox();
        checkEstatusContratado = new javax.swing.JCheckBox();
        jPanel3 = new javax.swing.JPanel();
        jPanel38 = new javax.swing.JPanel();
        jLabel58 = new javax.swing.JLabel();
        jPanel18 = new javax.swing.JPanel();
        jLabel64 = new javax.swing.JLabel();
        jLabel65 = new javax.swing.JLabel();
        jPanel40 = new javax.swing.JPanel();
        jLabel77 = new javax.swing.JLabel();
        jLabel61 = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        idLabel2 = new javax.swing.JLabel();
        fechaEvento2 = new com.toedter.calendar.JDateChooser();
        descripcion2 = new javax.swing.JTextField();
        checkFechaE = new javax.swing.JCheckBox();
        checkDescripcionE = new javax.swing.JCheckBox();
        jScrollPane14 = new javax.swing.JScrollPane();
        jTextAreaLugar = new javax.swing.JTextArea();
        jCheckBoxLugar = new javax.swing.JCheckBox();
        jPanel41 = new javax.swing.JPanel();
        jLabel62 = new javax.swing.JLabel();
        jLabel63 = new javax.swing.JLabel();
        jLabel66 = new javax.swing.JLabel();
        cedulaEjec2 = new javax.swing.JComboBox();
        horaFin2 = new javax.swing.JTextField();
        horaInicio2 = new javax.swing.JTextField();
        checkHoraInicioE = new javax.swing.JCheckBox();
        checkHoraFinE = new javax.swing.JCheckBox();
        checkCedulaE = new javax.swing.JCheckBox();
        ModificarEvento = new javax.swing.JButton();
        jPanel15 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tablaEventos = new javax.swing.JTable();
        mostrarContratados1 = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        tablaParticulares = new javax.swing.JTable();
        mostrarContratados2 = new javax.swing.JButton();
        jLabel56 = new javax.swing.JLabel();
        jPanel20 = new javax.swing.JPanel();
        jLabel71 = new javax.swing.JLabel();
        jLabel72 = new javax.swing.JLabel();
        limpiar6 = new javax.swing.JButton();
        insertarParticular = new javax.swing.JButton();
        jPanel34 = new javax.swing.JPanel();
        jLabel67 = new javax.swing.JLabel();
        jLabel68 = new javax.swing.JLabel();
        jLabel69 = new javax.swing.JLabel();
        jLabel70 = new javax.swing.JLabel();
        direccionParticular = new javax.swing.JTextField();
        apellidoParticular = new javax.swing.JTextField();
        nombreParticular = new javax.swing.JTextField();
        cedulaParticular = new javax.swing.JTextField();
        jPanel39 = new javax.swing.JPanel();
        jLabel73 = new javax.swing.JLabel();
        jLabel75 = new javax.swing.JLabel();
        jLabel76 = new javax.swing.JLabel();
        jLabel89 = new javax.swing.JLabel();
        cedulasEjecutivosPart = new javax.swing.JComboBox();
        jDateChooserNac = new com.toedter.calendar.JDateChooser();
        jComboBoxSexo = new javax.swing.JComboBox();
        telefonoParticular = new javax.swing.JTextField();
        jPanel22 = new javax.swing.JPanel();
        jLabel81 = new javax.swing.JLabel();
        jLabel82 = new javax.swing.JLabel();
        jLabel83 = new javax.swing.JLabel();
        jLabel84 = new javax.swing.JLabel();
        jLabel85 = new javax.swing.JLabel();
        jLabel86 = new javax.swing.JLabel();
        nombrePart2 = new javax.swing.JTextField();
        apellidoPart2 = new javax.swing.JTextField();
        direccionPart2 = new javax.swing.JTextField();
        telefonoPart2 = new javax.swing.JTextField();
        checkNombrePart = new javax.swing.JCheckBox();
        checkApellidoPart = new javax.swing.JCheckBox();
        checkDireccionPart = new javax.swing.JCheckBox();
        checkTelefonoPart = new javax.swing.JCheckBox();
        jLabel87 = new javax.swing.JLabel();
        ModificarParticular = new javax.swing.JButton();
        cedulaPart2 = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        jPanel23 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        tablaCompanias = new javax.swing.JTable();
        mostrarCompanias = new javax.swing.JButton();
        jLabel57 = new javax.swing.JLabel();
        jPanel24 = new javax.swing.JPanel();
        jLabel80 = new javax.swing.JLabel();
        jLabel88 = new javax.swing.JLabel();
        jLabel90 = new javax.swing.JLabel();
        nombreCompania = new javax.swing.JTextField();
        jLabel91 = new javax.swing.JLabel();
        jLabel92 = new javax.swing.JLabel();
        jLabel93 = new javax.swing.JLabel();
        limpiar8 = new javax.swing.JButton();
        insertarCompania = new javax.swing.JButton();
        rifCompania = new javax.swing.JTextField();
        direccionCompania = new javax.swing.JTextField();
        telefonoCompania = new javax.swing.JTextField();
        jLabel109 = new javax.swing.JLabel();
        cedulasEjecutivosComp = new javax.swing.JComboBox();
        jPanel26 = new javax.swing.JPanel();
        jLabel100 = new javax.swing.JLabel();
        jLabel101 = new javax.swing.JLabel();
        jLabel103 = new javax.swing.JLabel();
        jLabel104 = new javax.swing.JLabel();
        jLabel105 = new javax.swing.JLabel();
        nombreComp2 = new javax.swing.JTextField();
        telefonoComp2 = new javax.swing.JTextField();
        checkNombreComp = new javax.swing.JCheckBox();
        checkDireccionComp = new javax.swing.JCheckBox();
        checkTelefonoComp = new javax.swing.JCheckBox();
        jLabel106 = new javax.swing.JLabel();
        ModificarCompania = new javax.swing.JButton();
        jScrollPane7 = new javax.swing.JScrollPane();
        direccionComp2 = new javax.swing.JTextArea();
        rifComp2 = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        jPanel28 = new javax.swing.JPanel();
        jScrollPane8 = new javax.swing.JScrollPane();
        tablaAtencionPart = new javax.swing.JTable();
        mostrarAtencionPart = new javax.swing.JButton();
        jLabel51 = new javax.swing.JLabel();
        jPanel30 = new javax.swing.JPanel();
        jLabel94 = new javax.swing.JLabel();
        jLabel95 = new javax.swing.JLabel();
        jLabel99 = new javax.swing.JLabel();
        jLabel102 = new javax.swing.JLabel();
        jLabelCedulaAtencion = new javax.swing.JLabel();
        jLabelNombreAtencion = new javax.swing.JLabel();
        jLabelTelefonoAtencion = new javax.swing.JLabel();
        jScrollPane10 = new javax.swing.JScrollPane();
        jTextAreaDireccionAtencion = new javax.swing.JTextArea();
        jLabel41 = new javax.swing.JLabel();
        jPanel27 = new javax.swing.JPanel();
        jPanel35 = new javax.swing.JPanel();
        jPanel36 = new javax.swing.JPanel();
        jLabel132 = new javax.swing.JLabel();
        jLabel133 = new javax.swing.JLabel();
        estatusCotLabel = new javax.swing.JLabel();
        jLabel134 = new javax.swing.JLabel();
        jLabel135 = new javax.swing.JLabel();
        jLabel136 = new javax.swing.JLabel();
        fechaCotLabel = new javax.swing.JLabel();
        eliminarCotizacion = new javax.swing.JButton();
        jLabel145 = new javax.swing.JLabel();
        jLabel146 = new javax.swing.JLabel();
        jLabel147 = new javax.swing.JLabel();
        colorCotLabel = new javax.swing.JLabel();
        idEventoCotLabel = new javax.swing.JLabel();
        rifCompCotLabel = new javax.swing.JLabel();
        cedPartCotLabel = new javax.swing.JLabel();
        idCotLabel = new javax.swing.JLabel();
        jPanel37 = new javax.swing.JPanel();
        jLabel138 = new javax.swing.JLabel();
        jLabel140 = new javax.swing.JLabel();
        jLabel141 = new javax.swing.JLabel();
        checkEstatus = new javax.swing.JCheckBox();
        checkColor = new javax.swing.JCheckBox();
        jLabel142 = new javax.swing.JLabel();
        ModificarCotizacion = new javax.swing.JButton();
        jLabel137 = new javax.swing.JLabel();
        colorCot2 = new javax.swing.JTextField();
        estatusCotizacion2 = new javax.swing.JComboBox();
        idCot2 = new javax.swing.JLabel();
        jScrollPane12 = new javax.swing.JScrollPane();
        tablaCotizaciones = new javax.swing.JTable();
        mostrarCotizaciones = new javax.swing.JButton();
        jLabel74 = new javax.swing.JLabel();
        jPanel16 = new javax.swing.JPanel();
        jPanel17 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        tablaCronogramaEventos = new javax.swing.JTable();
        jPanel25 = new javax.swing.JPanel();
        jLabel78 = new javax.swing.JLabel();
        jLabel79 = new javax.swing.JLabel();
        jLabel97 = new javax.swing.JLabel();
        jLabel98 = new javax.swing.JLabel();
        jLabelCedulaCliente = new javax.swing.JLabel();
        jLabelNombreCliente = new javax.swing.JLabel();
        jLabelTelefonoCliente = new javax.swing.JLabel();
        jScrollPane9 = new javax.swing.JScrollPane();
        jTextAreaDireccionCliente = new javax.swing.JTextArea();
        jLabel45 = new javax.swing.JLabel();
        jPanel21 = new javax.swing.JPanel();
        jMonthChooserEvento = new com.toedter.calendar.JMonthChooser();
        mostrarContratados3 = new javax.swing.JButton();
        jLabel46 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();
        jLabel48 = new javax.swing.JLabel();
        jLabel49 = new javax.swing.JLabel();
        jLabel50 = new javax.swing.JLabel();
        jYearChooserEvento = new com.toedter.calendar.JYearChooser();
        jCheckBoxEvento = new javax.swing.JCheckBox();
        jComboBoxEjecutivos = new javax.swing.JComboBox();
        jLabel108 = new javax.swing.JLabel();
        jPanel29 = new javax.swing.JPanel();
        jPanel31 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jYearChooserServicios = new com.toedter.calendar.JYearChooser();
        jLabel52 = new javax.swing.JLabel();
        jPanel32 = new javax.swing.JPanel();
        jScrollPane11 = new javax.swing.JScrollPane();
        tablaClientesPartServicios = new javax.swing.JTable();
        jLabel53 = new javax.swing.JLabel();
        jPanel33 = new javax.swing.JPanel();
        jScrollPane13 = new javax.swing.JScrollPane();
        tablaClientesCompServicios = new javax.swing.JTable();
        jLabel54 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        salir = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        archivo = new javax.swing.JMenu();
        nuevaCotizacion = new javax.swing.JMenuItem();
        informacionSistema = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        exit = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        acercaDe = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Informacion del sistema");
        setResizable(false);

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jPanel6.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));

        tablaEjecutivos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Cedula", "Nombre", "Apellido", "Telefono", "Salario"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaEjecutivos.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaEjecutivos.getTableHeader().setReorderingAllowed(false);
        tablaEjecutivos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaEjecutivosMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(tablaEjecutivos);

        mostrarEjecutivos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        mostrarEjecutivos.setText("Mostrar");
        mostrarEjecutivos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarEjecutivosActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 935, Short.MAX_VALUE)
                    .add(mostrarEjecutivos))
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 252, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(mostrarEjecutivos)
                .addContainerGap())
        );

        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder("Insertar Ejecutivo"));
        jPanel8.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));

        jLabel1.setText("(*) Cedula:");

        jLabel2.setText("(*) Nombre:");

        jLabel3.setText("(*) Apellido:");

        jLabel4.setText("(*) Telefono:");

        jLabel5.setText("(*) Salario:");

        cedula.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cedulaActionPerformed(evt);
            }
        });
        cedula.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                cedulaKeyReleased(evt);
            }
        });

        nombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nombreActionPerformed(evt);
            }
        });

        apellido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                apellidoActionPerformed(evt);
            }
        });

        salario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                salarioActionPerformed(evt);
            }
        });

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_add.png"))); // NOI18N

        jLabel16.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel16.setForeground(new java.awt.Color(255, 0, 0));
        jLabel16.setText("Campos obligatorios (*)");

        limpiar.setText("Limpiar");
        limpiar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                limpiarActionPerformed(evt);
            }
        });

        insertarEjecutivo.setText("Insertar");
        insertarEjecutivo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarEjecutivoActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel8Layout = new org.jdesktop.layout.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel8Layout.createSequentialGroup()
                .add(jLabel6)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel8Layout.createSequentialGroup()
                        .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel8Layout.createSequentialGroup()
                                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                    .add(jLabel1)
                                    .add(jLabel2))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED))
                            .add(jPanel8Layout.createSequentialGroup()
                                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jLabel3)
                                    .add(jLabel4)
                                    .add(jLabel5))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))
                        .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(nombre)
                            .add(apellido)
                            .add(telefono)
                            .add(salario, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)
                            .add(cedula)))
                    .add(jLabel16))
                .addContainerGap(44, Short.MAX_VALUE))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel8Layout.createSequentialGroup()
                .addContainerGap(128, Short.MAX_VALUE)
                .add(limpiar)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(insertarEjecutivo)
                .addContainerGap())
        );

        jPanel8Layout.linkSize(new java.awt.Component[] {jLabel1, jLabel2, jLabel3, jLabel4, jLabel5}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel8Layout.linkSize(new java.awt.Component[] {insertarEjecutivo, limpiar}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel8Layout.createSequentialGroup()
                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel6)
                    .add(jLabel16))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel1)
                    .add(jPanel8Layout.createSequentialGroup()
                        .add(cedula, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(10, 10, 10)
                        .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel2)
                            .add(nombre, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel3)
                    .add(apellido, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel4)
                    .add(telefono, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel5)
                    .add(salario, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 18, Short.MAX_VALUE)
                .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(limpiar)
                    .add(insertarEjecutivo))
                .addContainerGap())
        );

        jPanel8Layout.linkSize(new java.awt.Component[] {apellido, cedula, nombre, salario, telefono}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Eliminar Ejecutivo"));

        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_remove.png"))); // NOI18N

        jLabel8.setText("Cedula:");

        nombreEjecutivo.setText("nombre ejecutivo");

        jLabel10.setText("Nombre:");

        jLabel42.setText("Apellido:");

        jLabel43.setText("Telefono:");

        jLabel44.setText("Salario:");

        salarioEjecutivo.setText("salario ejecutivo");

        telefonoEjecutivo.setText("telefono ejecutivo");

        apellidoEjecutivo.setText("apellido ejecutivo");

        eliminarEjecutivo.setText("Eliminar");
        eliminarEjecutivo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eliminarEjecutivoActionPerformed(evt);
            }
        });

        cedulaEjecutivo.setText("cedula ejecutivo");

        org.jdesktop.layout.GroupLayout jPanel9Layout = new org.jdesktop.layout.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel7)
                .addContainerGap(237, Short.MAX_VALUE))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap(190, Short.MAX_VALUE)
                .add(eliminarEjecutivo)
                .addContainerGap())
            .add(jPanel9Layout.createSequentialGroup()
                .add(51, 51, 51)
                .add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel9Layout.createSequentialGroup()
                        .add(jLabel44)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(salarioEjecutivo))
                    .add(jPanel9Layout.createSequentialGroup()
                        .add(jLabel43)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(telefonoEjecutivo))
                    .add(jPanel9Layout.createSequentialGroup()
                        .add(jLabel42)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(apellidoEjecutivo))
                    .add(jPanel9Layout.createSequentialGroup()
                        .add(jLabel10)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(nombreEjecutivo))
                    .add(jPanel9Layout.createSequentialGroup()
                        .add(jLabel8)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(cedulaEjecutivo)))
                .addContainerGap(79, Short.MAX_VALUE))
        );

        jPanel9Layout.linkSize(new java.awt.Component[] {apellidoEjecutivo, nombreEjecutivo, salarioEjecutivo, telefonoEjecutivo}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel9Layout.linkSize(new java.awt.Component[] {jLabel10, jLabel42, jLabel43, jLabel44, jLabel8}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel9Layout.createSequentialGroup()
                .add(jLabel7)
                .add(9, 9, 9)
                .add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel8)
                    .add(cedulaEjecutivo))
                .add(18, 18, 18)
                .add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombreEjecutivo)
                    .add(jLabel10))
                .add(18, 18, 18)
                .add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel42)
                    .add(apellidoEjecutivo))
                .add(18, 18, 18)
                .add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(telefonoEjecutivo)
                    .add(jLabel43))
                .add(18, 18, 18)
                .add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(salarioEjecutivo)
                    .add(jLabel44))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 16, Short.MAX_VALUE)
                .add(eliminarEjecutivo)
                .addContainerGap())
        );

        jPanel9Layout.linkSize(new java.awt.Component[] {jLabel10, jLabel42, jLabel43, jLabel44, jLabel8}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar Ejecutivo", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Microsoft Sans Serif", 0, 12))); // NOI18N

        jLabel9.setText("Cedula:");

        jLabel11.setText("Nombre:");

        jLabel12.setText("Apellido:");

        jLabel13.setText("Telefono:");

        jLabel14.setText("Salario:");

        jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/configure.png"))); // NOI18N

        nombre2.setEnabled(false);

        apellido2.setEnabled(false);

        telefono2.setEnabled(false);

        salario2.setEnabled(false);

        checkNombre.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        checkNombre.setEnabled(false);
        checkNombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkNombreActionPerformed(evt);
            }
        });

        checkApellido.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        checkApellido.setEnabled(false);
        checkApellido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkApellidoActionPerformed(evt);
            }
        });

        checkTelefono.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        checkTelefono.setEnabled(false);
        checkTelefono.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkTelefonoActionPerformed(evt);
            }
        });

        checkSalario.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        checkSalario.setEnabled(false);
        checkSalario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkSalarioActionPerformed(evt);
            }
        });

        jLabel17.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel17.setText("Seleccione los campos que desea modificar");

        insertarEjecutivo1.setText("Modificar");
        insertarEjecutivo1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarEjecutivo1ActionPerformed(evt);
            }
        });

        cedulaEjecutivo2.setText("cedula ejecutivo");

        jLabel96.setText("Habilitado:");

        jComboBoxEstatusEjecutivo.setEnabled(false);

        checkEstatusEjecutivo.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        checkEstatusEjecutivo.setEnabled(false);
        checkEstatusEjecutivo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkEstatusEjecutivoActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel10Layout = new org.jdesktop.layout.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel10Layout.createSequentialGroup()
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(jPanel10Layout.createSequentialGroup()
                            .addContainerGap()
                            .add(jLabel15)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(jLabel14)
                                .add(jLabel13)
                                .add(jLabel12)
                                .add(jLabel11)
                                .add(jLabel9)
                                .add(jLabel96))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                .add(jComboBoxEstatusEjecutivo, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .add(cedulaEjecutivo2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .add(nombre2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                                .add(apellido2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                                .add(telefono2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 127, Short.MAX_VALUE)
                                .add(salario2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 127, Short.MAX_VALUE))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                .add(checkApellido)
                                .add(checkNombre)
                                .add(checkTelefono)
                                .add(checkSalario)
                                .add(checkEstatusEjecutivo)))
                        .add(jPanel10Layout.createSequentialGroup()
                            .add(38, 38, 38)
                            .add(jLabel17)))
                    .add(jPanel10Layout.createSequentialGroup()
                        .add(182, 182, 182)
                        .add(insertarEjecutivo1)))
                .addContainerGap())
        );

        jPanel10Layout.linkSize(new java.awt.Component[] {apellido2, cedulaEjecutivo2, nombre2, salario2, telefono2}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel10Layout.linkSize(new java.awt.Component[] {jLabel11, jLabel12, jLabel13, jLabel14, jLabel9}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel10Layout.createSequentialGroup()
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel15)
                    .add(jLabel17))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel9)
                    .add(cedulaEjecutivo2))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombre2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(checkNombre)
                    .add(jLabel11))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(apellido2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel12)
                    .add(checkApellido))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(telefono2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(checkTelefono)
                    .add(jLabel13))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(salario2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(checkSalario)
                    .add(jLabel14))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(jLabel96)
                        .add(jComboBoxEstatusEjecutivo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(checkEstatusEjecutivo))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 11, Short.MAX_VALUE)
                .add(insertarEjecutivo1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel10Layout.linkSize(new java.awt.Component[] {apellido2, checkApellido, checkEstatusEjecutivo, checkNombre, checkSalario, checkTelefono, jComboBoxEstatusEjecutivo, nombre2, salario2, telefono2}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel10Layout.linkSize(new java.awt.Component[] {jLabel11, jLabel12, jLabel13, jLabel14, jLabel9}, org.jdesktop.layout.GroupLayout.VERTICAL);

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1Layout.createSequentialGroup()
                        .add(jPanel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(51, 51, 51)
                        .add(jPanel10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 58, Short.MAX_VALUE)
                        .add(jPanel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(jPanel9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(jPanel10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Ejecutivos", jPanel1);

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jPanel11.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel11.setPreferredSize(new java.awt.Dimension(810, 283));

        tablaContratados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Cedula", "Nombre", "Apellido", "Telefono", "Cargo", "Costo Hora"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaContratados.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaContratados.getTableHeader().setReorderingAllowed(false);
        tablaContratados.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaContratadosMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(tablaContratados);

        mostrarContratados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        mostrarContratados.setText("Mostrar");
        mostrarContratados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarContratadosActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel11Layout = new org.jdesktop.layout.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 926, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, mostrarContratados))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)
                .add(11, 11, 11)
                .add(mostrarContratados, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder("Insertar Contratado"));
        jPanel12.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel12.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel18.setText("(*) Cedula:");

        jLabel19.setText("(*) Nombre:");

        jLabel20.setText("(*) Apellido:");

        jLabel21.setText("(*) Telefono:");

        jLabel22.setText("(*) Cargo:");

        cedulaC.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                cedulaCKeyReleased(evt);
            }
        });

        nombreC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nombreCActionPerformed(evt);
            }
        });

        apellidoC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                apellidoCActionPerformed(evt);
            }
        });

        cargo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cargoActionPerformed(evt);
            }
        });

        jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_add.png"))); // NOI18N

        jLabel24.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel24.setForeground(new java.awt.Color(255, 0, 0));
        jLabel24.setText("Campos obligatorios (*)");

        jLabel35.setText("(*) Costo Hora:");

        costo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                costoActionPerformed(evt);
            }
        });

        limpiar1.setText("Limpiar");
        limpiar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                limpiar1ActionPerformed(evt);
            }
        });

        insertarEjecutivo2.setText("Insertar");
        insertarEjecutivo2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarEjecutivo2ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel12Layout = new org.jdesktop.layout.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel12Layout.createSequentialGroup()
                .add(1, 1, 1)
                .add(jLabel23)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel24)
                .addContainerGap())
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel12Layout.createSequentialGroup()
                .addContainerGap(149, Short.MAX_VALUE)
                .add(limpiar1)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(insertarEjecutivo2)
                .addContainerGap())
            .add(jPanel12Layout.createSequentialGroup()
                .add(43, 43, 43)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel35)
                    .add(jLabel22)
                    .add(jLabel21)
                    .add(jLabel20)
                    .add(jLabel19)
                    .add(jLabel18))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                        .add(cargo)
                        .add(telefonoC)
                        .add(apellidoC)
                        .add(nombreC)
                        .add(cedulaC, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(costo, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE))
                .add(43, 43, 43))
        );

        jPanel12Layout.linkSize(new java.awt.Component[] {jLabel18, jLabel19, jLabel20, jLabel21, jLabel22, jLabel35}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel12Layout.linkSize(new java.awt.Component[] {insertarEjecutivo2, limpiar1}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel12Layout.linkSize(new java.awt.Component[] {apellidoC, cargo, cedulaC, costo, nombreC, telefonoC}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel12Layout.createSequentialGroup()
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel23)
                    .add(jLabel24))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cedulaC, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel18))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombreC, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel19))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(apellidoC, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel20))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(telefonoC, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel21))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cargo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel22))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(costo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel35))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 32, Short.MAX_VALUE)
                .add(jPanel12Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(limpiar1)
                    .add(insertarEjecutivo2))
                .addContainerGap())
        );

        jPanel12Layout.linkSize(new java.awt.Component[] {jLabel18, jLabel19, jLabel20, jLabel21, jLabel22, jLabel35}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder("Eliminar Contratado"));
        jPanel13.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_remove.png"))); // NOI18N

        jLabel26.setText("Cedula:");

        nombreContratado.setText("nombre contratado");

        jLabel27.setText("Nombre:");

        jLabel37.setText("Apellido:");

        apellidoContratado.setText("apellido contratado");

        jLabel38.setText("Telefono:");

        telefonoContratado.setText("telefono contratado");

        jLabel39.setText("Cargo:");

        cargoContratado.setText("cargo contratado");

        jLabel40.setText("Costo:");

        costoContratado.setText("costo contratado");

        eliminarEjecutivo1.setText("Eliminar");
        eliminarEjecutivo1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eliminarEjecutivo1ActionPerformed(evt);
            }
        });

        cedulaContratado.setText("cedula contratado");

        org.jdesktop.layout.GroupLayout jPanel13Layout = new org.jdesktop.layout.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel25)
                .addContainerGap(250, Short.MAX_VALUE))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel13Layout.createSequentialGroup()
                .addContainerGap(203, Short.MAX_VALUE)
                .add(eliminarEjecutivo1)
                .addContainerGap())
            .add(jPanel13Layout.createSequentialGroup()
                .add(74, 74, 74)
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel13Layout.createSequentialGroup()
                        .add(jLabel27)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(nombreContratado))
                    .add(jPanel13Layout.createSequentialGroup()
                        .add(jLabel37)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(apellidoContratado))
                    .add(jPanel13Layout.createSequentialGroup()
                        .add(jLabel38)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(telefonoContratado))
                    .add(jPanel13Layout.createSequentialGroup()
                        .add(jLabel39)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(cargoContratado))
                    .add(jPanel13Layout.createSequentialGroup()
                        .add(jLabel40)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(costoContratado))
                    .add(jPanel13Layout.createSequentialGroup()
                        .add(jLabel26)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(cedulaContratado)))
                .addContainerGap(60, Short.MAX_VALUE))
        );

        jPanel13Layout.linkSize(new java.awt.Component[] {jLabel26, jLabel27, jLabel37, jLabel38, jLabel39, jLabel40}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel13Layout.linkSize(new java.awt.Component[] {apellidoContratado, cargoContratado, costoContratado, nombreContratado, telefonoContratado}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel13Layout.createSequentialGroup()
                .add(jLabel25)
                .add(20, 20, 20)
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel26)
                    .add(cedulaContratado))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombreContratado)
                    .add(jLabel27))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(apellidoContratado)
                    .add(jLabel37))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(telefonoContratado)
                    .add(jLabel38))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cargoContratado)
                    .add(jLabel39))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel13Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(costoContratado)
                    .add(jLabel40))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 34, Short.MAX_VALUE)
                .add(eliminarEjecutivo1)
                .addContainerGap())
        );

        jPanel13Layout.linkSize(new java.awt.Component[] {jLabel26, jLabel27, jLabel37, jLabel38, jLabel39, jLabel40}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder("Modificar Contratado"));
        jPanel14.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel28.setText("Cedula:");

        jLabel29.setText("Nombre:");

        jLabel30.setText("Apellido:");

        jLabel31.setText("Telefono:");

        jLabel32.setText("Cargo:");

        jLabel33.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/configure.png"))); // NOI18N

        nombreC2.setEnabled(false);

        apellidoC2.setEnabled(false);

        telefonoC2.setEnabled(false);

        cargo2.setEnabled(false);

        checkNombreC.setEnabled(false);
        checkNombreC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkNombreCActionPerformed(evt);
            }
        });

        checkApellidoC.setEnabled(false);
        checkApellidoC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkApellidoCActionPerformed(evt);
            }
        });

        checkTelefonoC.setEnabled(false);
        checkTelefonoC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkTelefonoCActionPerformed(evt);
            }
        });

        checkCargo.setEnabled(false);
        checkCargo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkCargoActionPerformed(evt);
            }
        });

        jLabel34.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel34.setText("Seleccione los campos que desea modificar");

        jLabel36.setText("Costo:");

        costo2.setEnabled(false);

        checkCosto.setEnabled(false);
        checkCosto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkCostoActionPerformed(evt);
            }
        });

        insertarEjecutivo3.setText("Modificar");
        insertarEjecutivo3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarEjecutivo3ActionPerformed(evt);
            }
        });

        cedulaC2.setText("cedula contratado");

        jLabel107.setText("Habilitado:");

        jComboBoxEstatusContratado.setEnabled(false);

        checkEstatusContratado.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        checkEstatusContratado.setEnabled(false);
        checkEstatusContratado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkEstatusContratadoActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel14Layout = new org.jdesktop.layout.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel14Layout.createSequentialGroup()
                        .add(insertarEjecutivo3)
                        .addContainerGap())
                    .add(jPanel14Layout.createSequentialGroup()
                        .add(jLabel33)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel14Layout.createSequentialGroup()
                                .add(10, 10, 10)
                                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jLabel107)
                                    .add(jLabel36)
                                    .add(jLabel32)
                                    .add(jLabel31)
                                    .add(jLabel30)
                                    .add(jLabel28)
                                    .add(jLabel29))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(cedulaC2)
                                    .add(nombreC2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
                                    .add(apellidoC2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
                                    .add(telefonoC2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
                                    .add(cargo2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
                                    .add(jComboBoxEstatusContratado, 0, 154, Short.MAX_VALUE)
                                    .add(costo2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, checkEstatusContratado)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, checkCosto)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, checkCargo)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, checkTelefonoC)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, checkApellidoC)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, checkNombreC))
                                .addContainerGap())
                            .add(jLabel34)))))
        );

        jPanel14Layout.linkSize(new java.awt.Component[] {jLabel107, jLabel28, jLabel29, jLabel30, jLabel31, jLabel32, jLabel36}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel14Layout.linkSize(new java.awt.Component[] {apellidoC2, cargo2, cedulaC2, costo2, jComboBoxEstatusContratado, nombreC2, telefonoC2}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel14Layout.createSequentialGroup()
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel33)
                    .add(jLabel34))
                .add(5, 5, 5)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel28)
                    .add(cedulaC2))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombreC2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel29)
                    .add(checkNombreC))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(apellidoC2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel30)
                    .add(checkApellidoC))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(telefonoC2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel31)
                    .add(checkTelefonoC))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cargo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel32)
                    .add(checkCargo))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(costo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel36)
                    .add(checkCosto))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 6, Short.MAX_VALUE)
                .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel14Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(jComboBoxEstatusContratado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(jLabel107))
                    .add(checkEstatusContratado))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(insertarEjecutivo3)
                .addContainerGap())
        );

        jPanel14Layout.linkSize(new java.awt.Component[] {jLabel28, jLabel29, jLabel30, jLabel31, jLabel32, jLabel36}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel14Layout.linkSize(new java.awt.Component[] {apellidoC2, cargo2, costo2, nombreC2, telefonoC2}, org.jdesktop.layout.GroupLayout.VERTICAL);

        org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel11, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 958, Short.MAX_VALUE)
                    .add(jPanel2Layout.createSequentialGroup()
                        .add(jPanel12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 333, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 294, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .add(176, 176, 176))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 292, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel2Layout.createSequentialGroup()
                        .add(12, 12, 12)
                        .add(jPanel14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .add(jPanel2Layout.createSequentialGroup()
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)
                            .add(jPanel13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE))))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Contratados", jPanel2);

        jPanel38.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Informacion de nuestro Eventos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(0, 51, 204))); // NOI18N

        jLabel58.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/logoPeq.png"))); // NOI18N

        jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder("Modificar Evento"));
        jPanel18.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel64.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/configure.png"))); // NOI18N

        jLabel65.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel65.setText("Seleccione los campos que desea modificar");

        jLabel77.setText("Lugar:");

        jLabel61.setText("Descripcion:");

        jLabel60.setText("Fecha:");

        jLabel59.setText("Id:");

        idLabel2.setText("id evento");

        fechaEvento2.setEnabled(false);

        descripcion2.setEnabled(false);

        checkFechaE.setEnabled(false);
        checkFechaE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkFechaEActionPerformed(evt);
            }
        });

        checkDescripcionE.setEnabled(false);
        checkDescripcionE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDescripcionEActionPerformed(evt);
            }
        });

        jTextAreaLugar.setColumns(20);
        jTextAreaLugar.setRows(5);
        jTextAreaLugar.setEnabled(false);
        jScrollPane14.setViewportView(jTextAreaLugar);

        jCheckBoxLugar.setEnabled(false);
        jCheckBoxLugar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBoxLugarActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel40Layout = new org.jdesktop.layout.GroupLayout(jPanel40);
        jPanel40.setLayout(jPanel40Layout);
        jPanel40Layout.setHorizontalGroup(
            jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel40Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel77)
                    .add(jLabel61)
                    .add(jLabel60)
                    .add(jLabel59))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jScrollPane14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 195, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(descripcion2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .add(fechaEvento2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 134, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(idLabel2))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jCheckBoxLugar)
                    .add(checkDescripcionE)
                    .add(checkFechaE))
                .addContainerGap())
        );

        jPanel40Layout.linkSize(new java.awt.Component[] {jLabel59, jLabel60, jLabel61, jLabel77}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel40Layout.linkSize(new java.awt.Component[] {descripcion2, fechaEvento2, idLabel2, jScrollPane14}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel40Layout.setVerticalGroup(
            jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel40Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel59)
                    .add(idLabel2))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(checkFechaE)
                    .add(jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                        .add(fechaEvento2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(jLabel60)))
                .add(3, 3, 3)
                .add(jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(descripcion2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel61)
                    .add(checkDescripcionE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel40Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel77)
                    .add(jCheckBoxLugar)
                    .add(jScrollPane14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        jPanel40Layout.linkSize(new java.awt.Component[] {fechaEvento2, idLabel2, jLabel59, jLabel60, jLabel61, jLabel77}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jLabel62.setText("Hora Inicio:");

        jLabel63.setText("Hora Fin:");

        jLabel66.setText("Ejecutivo:");

        cedulaEjec2.setEnabled(false);
        cedulaEjec2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cedulaEjec2ActionPerformed(evt);
            }
        });

        horaFin2.setEnabled(false);

        horaInicio2.setEnabled(false);

        checkHoraInicioE.setEnabled(false);
        checkHoraInicioE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkHoraInicioEActionPerformed(evt);
            }
        });

        checkHoraFinE.setEnabled(false);
        checkHoraFinE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkHoraFinEActionPerformed(evt);
            }
        });

        checkCedulaE.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        checkCedulaE.setEnabled(false);
        checkCedulaE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkCedulaEActionPerformed(evt);
            }
        });

        ModificarEvento.setText("Modificar");
        ModificarEvento.setEnabled(false);
        ModificarEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ModificarEventoActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel41Layout = new org.jdesktop.layout.GroupLayout(jPanel41);
        jPanel41.setLayout(jPanel41Layout);
        jPanel41Layout.setHorizontalGroup(
            jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel41Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel41Layout.createSequentialGroup()
                        .add(jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel66)
                            .add(jLabel63)
                            .add(jLabel62))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(cedulaEjec2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(horaFin2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)
                            .add(horaInicio2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(checkCedulaE)
                            .add(checkHoraFinE)
                            .add(checkHoraInicioE))
                        .add(11, 11, 11))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel41Layout.createSequentialGroup()
                        .add(ModificarEvento)
                        .addContainerGap())))
        );

        jPanel41Layout.linkSize(new java.awt.Component[] {jLabel62, jLabel63, jLabel66}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel41Layout.linkSize(new java.awt.Component[] {cedulaEjec2, horaFin2, horaInicio2}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel41Layout.setVerticalGroup(
            jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel41Layout.createSequentialGroup()
                .add(35, 35, 35)
                .add(jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(horaInicio2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel62)
                    .add(checkHoraInicioE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(horaFin2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel63)
                    .add(checkHoraFinE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel41Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cedulaEjec2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel66)
                    .add(checkCedulaE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 43, Short.MAX_VALUE)
                .add(ModificarEvento)
                .addContainerGap())
        );

        org.jdesktop.layout.GroupLayout jPanel18Layout = new org.jdesktop.layout.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel64)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel18Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel18Layout.createSequentialGroup()
                        .add(jPanel40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel41, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jLabel65))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel18Layout.createSequentialGroup()
                .add(jLabel64)
                .add(201, 201, 201))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel18Layout.createSequentialGroup()
                .add(jLabel65)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(jPanel18Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel41, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jPanel40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel18Layout.linkSize(new java.awt.Component[] {jPanel40, jPanel41}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel15.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel15.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel15.setPreferredSize(new java.awt.Dimension(810, 283));

        tablaEventos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Id", "Fecha", "Descripcion", "Hora Inicio", "Hora Fin", "Ejecutivo"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaEventos.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaEventos.getTableHeader().setReorderingAllowed(false);
        tablaEventos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaEventosMouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(tablaEventos);

        org.jdesktop.layout.GroupLayout jPanel15Layout = new org.jdesktop.layout.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 921, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)
                .addContainerGap())
        );

        mostrarContratados1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        mostrarContratados1.setText("Mostrar");
        mostrarContratados1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarContratados1ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel38Layout = new org.jdesktop.layout.GroupLayout(jPanel38);
        jPanel38.setLayout(jPanel38Layout);
        jPanel38Layout.setHorizontalGroup(
            jPanel38Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel38Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel38Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 947, Short.MAX_VALUE)
                    .add(jPanel38Layout.createSequentialGroup()
                        .add(jLabel58)
                        .add(18, 18, 18)
                        .add(jPanel18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 628, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, mostrarContratados1))
                .addContainerGap())
        );
        jPanel38Layout.setVerticalGroup(
            jPanel38Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel38Layout.createSequentialGroup()
                .add(jPanel38Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel58)
                    .add(jPanel18, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 250, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(mostrarContratados1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel38, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel38, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Eventos", jPanel3);

        jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jPanel19.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel19.setPreferredSize(new java.awt.Dimension(810, 283));

        tablaParticulares.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Cedula", "Nombre", "Apellido", "Direccion", "Telefono"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaParticulares.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaParticulares.getTableHeader().setReorderingAllowed(false);
        tablaParticulares.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaParticularesMouseClicked(evt);
            }
        });
        jScrollPane4.setViewportView(tablaParticulares);

        mostrarContratados2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        mostrarContratados2.setText("Mostrar");
        mostrarContratados2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarContratados2ActionPerformed(evt);
            }
        });

        jLabel56.setForeground(new java.awt.Color(0, 102, 204));
        jLabel56.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_user.png"))); // NOI18N
        jLabel56.setText("Clientes Particulares");

        org.jdesktop.layout.GroupLayout jPanel19Layout = new org.jdesktop.layout.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel19Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel56)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, mostrarContratados2)
                    .add(jScrollPane4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 939, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel19Layout.createSequentialGroup()
                .add(jLabel56)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE)
                .add(7, 7, 7)
                .add(mostrarContratados2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder("Insertar Cliente Particular"));
        jPanel20.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel20.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel71.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_add.png"))); // NOI18N

        jLabel72.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 10));
        jLabel72.setForeground(new java.awt.Color(255, 0, 0));
        jLabel72.setText("Campos obligatorios (*)");

        limpiar6.setText("Limpiar");
        limpiar6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                limpiar6ActionPerformed(evt);
            }
        });

        insertarParticular.setText("Insertar");
        insertarParticular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarParticularActionPerformed(evt);
            }
        });

        jLabel67.setText("(*) Cedula:");

        jLabel68.setText("(*) Nombre:");

        jLabel69.setText("(*) Apellido:");

        jLabel70.setText("(*) Direccion:");

        apellidoParticular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                apellidoParticularActionPerformed(evt);
            }
        });

        nombreParticular.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        nombreParticular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nombreParticularActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel34Layout = new org.jdesktop.layout.GroupLayout(jPanel34);
        jPanel34.setLayout(jPanel34Layout);
        jPanel34Layout.setHorizontalGroup(
            jPanel34Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel34Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel34Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel34Layout.createSequentialGroup()
                        .add(jLabel70)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(direccionParticular, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel34Layout.createSequentialGroup()
                        .add(jLabel69)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(apellidoParticular, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel34Layout.createSequentialGroup()
                        .add(jLabel68)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(nombreParticular, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE))
                    .add(jPanel34Layout.createSequentialGroup()
                        .add(jLabel67)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(cedulaParticular, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)))
                .addContainerGap())
        );

        jPanel34Layout.linkSize(new java.awt.Component[] {apellidoParticular, cedulaParticular, direccionParticular, nombreParticular}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel34Layout.linkSize(new java.awt.Component[] {jLabel67, jLabel68, jLabel69, jLabel70}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel34Layout.setVerticalGroup(
            jPanel34Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel34Layout.createSequentialGroup()
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(jPanel34Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cedulaParticular, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel67))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel34Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombreParticular, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel68))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel34Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(apellidoParticular, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel69))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel34Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(direccionParticular, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel70))
                .addContainerGap())
        );

        jPanel34Layout.linkSize(new java.awt.Component[] {jLabel67, jLabel68}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel34Layout.linkSize(new java.awt.Component[] {apellidoParticular, cedulaParticular, direccionParticular, nombreParticular}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jLabel73.setText("(*) Telefono:");

        jLabel75.setText("Sexo:");

        jLabel76.setText("Fecha Nacimiento:");

        jLabel89.setText("(*) Ejecutivo:");

        cedulasEjecutivosPart.setToolTipText("Ejecutivos");
        cedulasEjecutivosPart.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                cedulasEjecutivosPartMouseEntered(evt);
            }
        });
        cedulasEjecutivosPart.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cedulasEjecutivosPartActionPerformed(evt);
            }
        });

        jComboBoxSexo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "F", "M" }));

        org.jdesktop.layout.GroupLayout jPanel39Layout = new org.jdesktop.layout.GroupLayout(jPanel39);
        jPanel39.setLayout(jPanel39Layout);
        jPanel39Layout.setHorizontalGroup(
            jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel39Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel39Layout.createSequentialGroup()
                        .add(jLabel89)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 27, Short.MAX_VALUE)
                        .add(cedulasEjecutivosPart, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 168, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jPanel39Layout.createSequentialGroup()
                        .add(jLabel76)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jDateChooserNac, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 138, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jPanel39Layout.createSequentialGroup()
                        .add(jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel73)
                            .add(jLabel75))
                        .add(29, 29, 29)
                        .add(jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jComboBoxSexo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(telefonoParticular, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE))))
                .addContainerGap())
        );

        jPanel39Layout.linkSize(new java.awt.Component[] {cedulasEjecutivosPart, jDateChooserNac, telefonoParticular}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel39Layout.setVerticalGroup(
            jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel39Layout.createSequentialGroup()
                .addContainerGap(13, Short.MAX_VALUE)
                .add(jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel73)
                    .add(telefonoParticular, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel75)
                    .add(jComboBoxSexo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(13, 13, 13)
                .add(jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(jDateChooserNac, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel76))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel39Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel89)
                    .add(cedulasEjecutivosPart, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel39Layout.linkSize(new java.awt.Component[] {jComboBoxSexo, jLabel75}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel39Layout.linkSize(new java.awt.Component[] {jDateChooserNac, jLabel76}, org.jdesktop.layout.GroupLayout.VERTICAL);

        org.jdesktop.layout.GroupLayout jPanel20Layout = new org.jdesktop.layout.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel20Layout.createSequentialGroup()
                .add(jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel20Layout.createSequentialGroup()
                        .add(1, 1, 1)
                        .add(jLabel71)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabel72))
                    .add(jPanel20Layout.createSequentialGroup()
                        .addContainerGap()
                        .add(jPanel34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(15, Short.MAX_VALUE))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel20Layout.createSequentialGroup()
                .addContainerGap(405, Short.MAX_VALUE)
                .add(limpiar6)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(insertarParticular)
                .addContainerGap())
        );

        jPanel20Layout.linkSize(new java.awt.Component[] {insertarParticular, limpiar6}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel20Layout.createSequentialGroup()
                .add(jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel71)
                    .add(jLabel72))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                    .add(jPanel39, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(jPanel34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(insertarParticular)
                    .add(limpiar6))
                .add(30, 30, 30))
        );

        jPanel22.setBorder(javax.swing.BorderFactory.createTitledBorder("Modificar Cliente Particular"));
        jPanel22.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel81.setText("Cedula:");

        jLabel82.setText("Nombre:");

        jLabel83.setText("Apellido:");

        jLabel84.setText("Direccion:");

        jLabel85.setText("Telefono:");

        jLabel86.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/configure.png"))); // NOI18N

        nombrePart2.setEnabled(false);

        apellidoPart2.setEnabled(false);

        direccionPart2.setEnabled(false);

        telefonoPart2.setEnabled(false);

        checkNombrePart.setEnabled(false);
        checkNombrePart.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkNombrePartActionPerformed(evt);
            }
        });

        checkApellidoPart.setEnabled(false);
        checkApellidoPart.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkApellidoPartActionPerformed(evt);
            }
        });

        checkDireccionPart.setEnabled(false);
        checkDireccionPart.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDireccionPartActionPerformed(evt);
            }
        });

        checkTelefonoPart.setEnabled(false);
        checkTelefonoPart.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkTelefonoPartActionPerformed(evt);
            }
        });

        jLabel87.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 10));
        jLabel87.setText("Seleccione los campos que desea modificar");

        ModificarParticular.setText("Modificar");
        ModificarParticular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ModificarParticularActionPerformed(evt);
            }
        });

        cedulaPart2.setText("cedula particular");

        org.jdesktop.layout.GroupLayout jPanel22Layout = new org.jdesktop.layout.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(jPanel22Layout.createSequentialGroup()
                            .add(jLabel86)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jLabel87)
                            .add(11, 11, 11))
                        .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel22Layout.createSequentialGroup()
                            .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                .add(jPanel22Layout.createSequentialGroup()
                                    .add(jLabel83)
                                    .add(27, 27, 27)
                                    .add(apellidoPart2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                    .add(checkApellidoPart))
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel22Layout.createSequentialGroup()
                                    .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                        .add(jLabel82)
                                        .add(jLabel81))
                                    .add(27, 27, 27)
                                    .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                        .add(cedulaPart2)
                                        .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel22Layout.createSequentialGroup()
                                            .add(nombrePart2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE)
                                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                            .add(checkNombrePart)))))
                            .add(10, 10, 10))
                        .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel22Layout.createSequentialGroup()
                            .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(jLabel84)
                                .add(jLabel85))
                            .add(21, 21, 21)
                            .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                .add(jPanel22Layout.createSequentialGroup()
                                    .add(telefonoPart2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                    .add(checkTelefonoPart))
                                .add(jPanel22Layout.createSequentialGroup()
                                    .add(direccionPart2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                    .add(checkDireccionPart)))
                            .add(10, 10, 10)))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel22Layout.createSequentialGroup()
                        .add(ModificarParticular)
                        .addContainerGap())))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel22Layout.createSequentialGroup()
                .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel86)
                    .add(jLabel87))
                .add(18, 18, 18)
                .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel81)
                    .add(cedulaPart2))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombrePart2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel82)
                    .add(checkNombrePart))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(apellidoPart2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(checkApellidoPart)
                    .add(jLabel83))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(direccionPart2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(checkDireccionPart)
                    .add(jLabel84))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel22Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(telefonoPart2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(checkTelefonoPart)
                    .add(jLabel85))
                .add(18, 18, 18)
                .add(ModificarParticular)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 971, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jPanel4Layout.createSequentialGroup()
                        .add(jPanel20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 575, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(18, 18, 18)
                        .add(jPanel22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 308, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel19, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                    .add(jPanel20, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                    .add(jPanel22, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Clientes Particulares", jPanel4);

        jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jPanel23.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel23.setPreferredSize(new java.awt.Dimension(810, 283));

        tablaCompanias.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Rif", "Nombre", "Direccion", "Telefono"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaCompanias.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaCompanias.getTableHeader().setReorderingAllowed(false);
        tablaCompanias.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaCompaniasMouseClicked(evt);
            }
        });
        jScrollPane5.setViewportView(tablaCompanias);

        mostrarCompanias.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        mostrarCompanias.setText("Mostrar");
        mostrarCompanias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarCompaniasActionPerformed(evt);
            }
        });

        jLabel57.setForeground(new java.awt.Color(0, 102, 204));
        jLabel57.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/agt_family.png"))); // NOI18N
        jLabel57.setText("Clientes Companias");

        org.jdesktop.layout.GroupLayout jPanel23Layout = new org.jdesktop.layout.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel23Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel23Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 939, Short.MAX_VALUE)
                    .add(jLabel57)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, mostrarCompanias))
                .addContainerGap())
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel23Layout.createSequentialGroup()
                .add(jLabel57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(mostrarCompanias, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel24.setBorder(javax.swing.BorderFactory.createTitledBorder("Insertar Cliente Compania"));
        jPanel24.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel24.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel80.setText("(*) Rif:");

        jLabel88.setText("(*) Nombre:");

        jLabel90.setText("(*) Direccion:");

        nombreCompania.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        nombreCompania.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nombreCompaniaActionPerformed(evt);
            }
        });

        jLabel91.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_add.png"))); // NOI18N

        jLabel92.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 10));
        jLabel92.setForeground(new java.awt.Color(255, 0, 0));
        jLabel92.setText("Campos obligatorios (*)");

        jLabel93.setText("(*) Telefono:");

        limpiar8.setText("Limpiar");
        limpiar8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                limpiar8ActionPerformed(evt);
            }
        });

        insertarCompania.setText("Insertar");
        insertarCompania.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarCompaniaActionPerformed(evt);
            }
        });

        jLabel109.setText("(*) Ejecutivo:");

        cedulasEjecutivosComp.setToolTipText("Ejecutivos");
        cedulasEjecutivosComp.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                cedulasEjecutivosCompMouseEntered(evt);
            }
        });
        cedulasEjecutivosComp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cedulasEjecutivosCompActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel24Layout = new org.jdesktop.layout.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel24Layout.createSequentialGroup()
                .add(1, 1, 1)
                .add(jLabel91)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel92)
                .add(146, 146, 146))
            .add(jPanel24Layout.createSequentialGroup()
                .add(19, 19, 19)
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel109)
                    .add(jLabel93)
                    .add(jLabel90)
                    .add(jLabel88)
                    .add(jLabel80))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(cedulasEjecutivosComp, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 184, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(telefonoCompania, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE)
                    .add(direccionCompania, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE)
                    .add(nombreCompania, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE)
                    .add(rifCompania, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 142, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel24Layout.createSequentialGroup()
                .addContainerGap(142, Short.MAX_VALUE)
                .add(limpiar8)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(insertarCompania)
                .add(10, 10, 10))
        );

        jPanel24Layout.linkSize(new java.awt.Component[] {insertarCompania, limpiar8}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel24Layout.linkSize(new java.awt.Component[] {jLabel109, jLabel80, jLabel88, jLabel90, jLabel93}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel24Layout.linkSize(new java.awt.Component[] {cedulasEjecutivosComp, direccionCompania, nombreCompania, rifCompania, telefonoCompania}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel24Layout.createSequentialGroup()
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel91)
                    .add(jLabel92))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(rifCompania, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel80))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombreCompania, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel88))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(direccionCompania, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel90))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(telefonoCompania, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel93))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cedulasEjecutivosComp, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel109))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 21, Short.MAX_VALUE)
                .add(jPanel24Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(limpiar8)
                    .add(insertarCompania))
                .add(18, 18, 18))
        );

        jPanel24Layout.linkSize(new java.awt.Component[] {direccionCompania, nombreCompania, rifCompania, telefonoCompania}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel24Layout.linkSize(new java.awt.Component[] {jLabel109, jLabel80, jLabel88, jLabel90, jLabel93}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel26.setBorder(javax.swing.BorderFactory.createTitledBorder("Modificar Cliente Compania"));
        jPanel26.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel100.setText("Rif:");

        jLabel101.setText("Nombre:");

        jLabel103.setText("Direccion:");

        jLabel104.setText("Telefono:");

        jLabel105.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/configure.png"))); // NOI18N

        nombreComp2.setEnabled(false);

        telefonoComp2.setEnabled(false);

        checkNombreComp.setEnabled(false);
        checkNombreComp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkNombreCompActionPerformed(evt);
            }
        });

        checkDireccionComp.setEnabled(false);
        checkDireccionComp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDireccionCompActionPerformed(evt);
            }
        });

        checkTelefonoComp.setEnabled(false);
        checkTelefonoComp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkTelefonoCompActionPerformed(evt);
            }
        });

        jLabel106.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 10));
        jLabel106.setText("Seleccione los campos que desea modificar");

        ModificarCompania.setText("Modificar");
        ModificarCompania.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ModificarCompaniaActionPerformed(evt);
            }
        });

        direccionComp2.setColumns(20);
        direccionComp2.setFont(new java.awt.Font("Tahoma", 0, 11));
        direccionComp2.setRows(5);
        direccionComp2.setEnabled(false);
        jScrollPane7.setViewportView(direccionComp2);

        rifComp2.setText("rif compania");

        org.jdesktop.layout.GroupLayout jPanel26Layout = new org.jdesktop.layout.GroupLayout(jPanel26);
        jPanel26.setLayout(jPanel26Layout);
        jPanel26Layout.setHorizontalGroup(
            jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel26Layout.createSequentialGroup()
                .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel26Layout.createSequentialGroup()
                        .add(32, 32, 32)
                        .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel26Layout.createSequentialGroup()
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)
                                    .add(jLabel104)
                                    .add(jLabel103)
                                    .add(jLabel101)
                                    .add(jLabel100))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jPanel26Layout.createSequentialGroup()
                                        .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)
                                            .add(jScrollPane7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 148, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(telefonoComp2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                                            .add(nombreComp2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE))
                                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                        .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)
                                                .add(checkDireccionComp)
                                                .add(checkNombreComp))
                                            .add(checkTelefonoComp))
                                        .add(16, 16, 16))
                                    .add(rifComp2)))
                            .add(jPanel26Layout.createSequentialGroup()
                                .add(jLabel105)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jLabel106))))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel26Layout.createSequentialGroup()
                        .addContainerGap(197, Short.MAX_VALUE)
                        .add(ModificarCompania)))
                .addContainerGap())
        );

        jPanel26Layout.linkSize(new java.awt.Component[] {jLabel100, jLabel101, jLabel103, jLabel104}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel26Layout.linkSize(new java.awt.Component[] {jScrollPane7, nombreComp2, telefonoComp2}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel26Layout.setVerticalGroup(
            jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel26Layout.createSequentialGroup()
                .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel105)
                    .add(jLabel106))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel100)
                    .add(rifComp2))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(nombreComp2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel101)
                    .add(checkNombreComp))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel103)
                    .add(checkDireccionComp)
                    .add(jScrollPane7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 82, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel26Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(telefonoComp2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel104)
                    .add(checkTelefonoComp))
                .add(18, 18, 18)
                .add(ModificarCompania)
                .addContainerGap())
        );

        jPanel26Layout.linkSize(new java.awt.Component[] {jLabel100, jLabel101, jLabel103, jLabel104, nombreComp2, telefonoComp2}, org.jdesktop.layout.GroupLayout.VERTICAL);

        org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 971, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jPanel5Layout.createSequentialGroup()
                        .add(jPanel24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 312, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 294, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel23, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel26, 0, 270, Short.MAX_VALUE)
                    .add(jPanel24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Clientes Companias", jPanel5);

        jPanel28.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Atencion a Nuestros Clientes", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(0, 51, 204))); // NOI18N
        jPanel28.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel28.setPreferredSize(new java.awt.Dimension(810, 283));

        tablaAtencionPart.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "EVENTO", "Fecha Evento", "Hora Inicio", "Hora Fin", "Ejecutivo", "Cliente Compania", "Cliente Particular"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaAtencionPart.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaAtencionPart.getTableHeader().setReorderingAllowed(false);
        tablaAtencionPart.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaAtencionPartMouseClicked(evt);
            }
        });
        jScrollPane8.setViewportView(tablaAtencionPart);

        mostrarAtencionPart.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        mostrarAtencionPart.setText("Mostrar");
        mostrarAtencionPart.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarAtencionPartActionPerformed(evt);
            }
        });

        jLabel51.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/logoPeq.png"))); // NOI18N

        jPanel30.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Detalles del Cliente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(0, 51, 204))); // NOI18N
        jPanel30.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel30.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel94.setText("Cedula/Rif:");

        jLabel95.setText("Nombre:");

        jLabel99.setText("Direccion:");

        jLabel102.setText("Telefono:");

        jLabelCedulaAtencion.setText("Cedula/Rif Cliente");

        jLabelNombreAtencion.setText("Nombre y Apellido Cliente");

        jLabelTelefonoAtencion.setText("Telefono Cliente");

        jTextAreaDireccionAtencion.setColumns(20);
        jTextAreaDireccionAtencion.setRows(5);
        jScrollPane10.setViewportView(jTextAreaDireccionAtencion);

        jLabel41.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/agt_family.png"))); // NOI18N

        org.jdesktop.layout.GroupLayout jPanel30Layout = new org.jdesktop.layout.GroupLayout(jPanel30);
        jPanel30.setLayout(jPanel30Layout);
        jPanel30Layout.setHorizontalGroup(
            jPanel30Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel30Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel41)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel30Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel30Layout.createSequentialGroup()
                        .add(jLabel102)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabelTelefonoAtencion))
                    .add(jPanel30Layout.createSequentialGroup()
                        .add(jLabel95)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabelNombreAtencion))
                    .add(jPanel30Layout.createSequentialGroup()
                        .add(jLabel94)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabelCedulaAtencion))
                    .add(jPanel30Layout.createSequentialGroup()
                        .add(jLabel99)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jScrollPane10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 192, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jPanel30Layout.linkSize(new java.awt.Component[] {jLabel102, jLabel94, jLabel95, jLabel99}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel30Layout.setVerticalGroup(
            jPanel30Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel30Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel30Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel94)
                    .add(jLabelCedulaAtencion))
                .add(18, 18, 18)
                .add(jPanel30Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel95)
                    .add(jLabelNombreAtencion))
                .add(18, 18, 18)
                .add(jPanel30Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel99)
                    .add(jScrollPane10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 79, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel30Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel102)
                    .add(jLabelTelefonoAtencion))
                .add(32, 32, 32))
            .add(jPanel30Layout.createSequentialGroup()
                .add(jLabel41)
                .addContainerGap(179, Short.MAX_VALUE))
        );

        org.jdesktop.layout.GroupLayout jPanel28Layout = new org.jdesktop.layout.GroupLayout(jPanel28);
        jPanel28.setLayout(jPanel28Layout);
        jPanel28Layout.setHorizontalGroup(
            jPanel28Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel28Layout.createSequentialGroup()
                .add(jPanel28Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel28Layout.createSequentialGroup()
                        .add(187, 187, 187)
                        .add(jLabel51)
                        .add(47, 47, 47)
                        .add(jPanel30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 332, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jPanel28Layout.createSequentialGroup()
                        .add(24, 24, 24)
                        .add(jPanel28Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(mostrarAtencionPart)
                            .add(jScrollPane8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 908, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(27, Short.MAX_VALUE))
        );
        jPanel28Layout.setVerticalGroup(
            jPanel28Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel28Layout.createSequentialGroup()
                .add(jPanel28Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel51)
                    .add(jPanel30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 238, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 251, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(18, 18, 18)
                .add(mostrarAtencionPart, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(16, 16, 16))
        );

        org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 971, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 579, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Atencion", jPanel7);

        jPanel36.setBorder(javax.swing.BorderFactory.createTitledBorder("Eliminar Cotizacion"));
        jPanel36.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel132.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_remove.png"))); // NOI18N

        jLabel133.setText("Id:");

        estatusCotLabel.setText("estatus cotizacion");

        jLabel134.setText("Estatus:");

        jLabel135.setText("Fecha:");

        jLabel136.setText("Color:");

        fechaCotLabel.setText("fecha cotizacion");

        eliminarCotizacion.setText("Eliminar");
        eliminarCotizacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eliminarCotizacionActionPerformed(evt);
            }
        });

        jLabel145.setText("Id Evento:");

        jLabel146.setText("Rif Compania:");

        jLabel147.setText("CI Particular:");

        colorCotLabel.setText("color cotizacion");

        idEventoCotLabel.setText("id evento");

        rifCompCotLabel.setText("rif cliente compania");

        cedPartCotLabel.setText("cedula cliente particular");

        idCotLabel.setText("id cotizacion");

        org.jdesktop.layout.GroupLayout jPanel36Layout = new org.jdesktop.layout.GroupLayout(jPanel36);
        jPanel36.setLayout(jPanel36Layout);
        jPanel36Layout.setHorizontalGroup(
            jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel36Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel132)
                .addContainerGap(250, Short.MAX_VALUE))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel36Layout.createSequentialGroup()
                .addContainerGap(53, Short.MAX_VALUE)
                .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(jLabel134)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(estatusCotLabel))
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(jLabel133)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(idCotLabel))
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(jLabel135)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(fechaCotLabel))
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(jLabel136)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(colorCotLabel))
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(jLabel145)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(idEventoCotLabel))
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(jLabel146)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(rifCompCotLabel))
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(jLabel147)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(cedPartCotLabel)))
                .add(43, 43, 43))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel36Layout.createSequentialGroup()
                .addContainerGap(203, Short.MAX_VALUE)
                .add(eliminarCotizacion)
                .addContainerGap())
        );

        jPanel36Layout.linkSize(new java.awt.Component[] {jLabel133, jLabel134, jLabel135, jLabel136, jLabel145, jLabel146, jLabel147}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel36Layout.linkSize(new java.awt.Component[] {cedPartCotLabel, colorCotLabel, estatusCotLabel, fechaCotLabel, idEventoCotLabel, rifCompCotLabel}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel36Layout.setVerticalGroup(
            jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel36Layout.createSequentialGroup()
                .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(jLabel132)
                        .add(194, 194, 194))
                    .add(jPanel36Layout.createSequentialGroup()
                        .add(25, 25, 25)
                        .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel133)
                            .add(idCotLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel134)
                            .add(estatusCotLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel135)
                            .add(fechaCotLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel136, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(colorCotLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel145)
                            .add(idEventoCotLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel146)
                            .add(rifCompCotLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jPanel36Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel147)
                            .add(cedPartCotLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))
                .add(23, 23, 23))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel36Layout.createSequentialGroup()
                .addContainerGap(205, Short.MAX_VALUE)
                .add(eliminarCotizacion)
                .addContainerGap())
        );

        jPanel36Layout.linkSize(new java.awt.Component[] {cedPartCotLabel, jLabel147}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel36Layout.linkSize(new java.awt.Component[] {estatusCotLabel, jLabel134}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel36Layout.linkSize(new java.awt.Component[] {colorCotLabel, jLabel136}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel36Layout.linkSize(new java.awt.Component[] {fechaCotLabel, jLabel135}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel36Layout.linkSize(new java.awt.Component[] {jLabel146, rifCompCotLabel}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel36Layout.linkSize(new java.awt.Component[] {idEventoCotLabel, jLabel145}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jPanel37.setBorder(javax.swing.BorderFactory.createTitledBorder("Modificar Cotizacion"));
        jPanel37.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel138.setText("Estatus:");

        jLabel140.setText("Color:");

        jLabel141.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/configure.png"))); // NOI18N

        checkEstatus.setEnabled(false);
        checkEstatus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkEstatusActionPerformed(evt);
            }
        });

        checkColor.setEnabled(false);
        checkColor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkColorActionPerformed(evt);
            }
        });

        jLabel142.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 10));
        jLabel142.setText("Seleccione los campos que desea modificar");

        ModificarCotizacion.setText("Modificar");
        ModificarCotizacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ModificarCotizacionActionPerformed(evt);
            }
        });

        jLabel137.setText("Id:");

        colorCot2.setEnabled(false);

        estatusCotizacion2.setToolTipText("Ejecutivos");
        estatusCotizacion2.setEnabled(false);
        estatusCotizacion2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                estatusCotizacion2MouseEntered(evt);
            }
        });
        estatusCotizacion2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estatusCotizacion2ActionPerformed(evt);
            }
        });

        idCot2.setText("id cotizacion");

        org.jdesktop.layout.GroupLayout jPanel37Layout = new org.jdesktop.layout.GroupLayout(jPanel37);
        jPanel37.setLayout(jPanel37Layout);
        jPanel37Layout.setHorizontalGroup(
            jPanel37Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel37Layout.createSequentialGroup()
                .addContainerGap(192, Short.MAX_VALUE)
                .add(ModificarCotizacion)
                .addContainerGap())
            .add(jPanel37Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel141)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel142)
                .addContainerGap(36, Short.MAX_VALUE))
            .add(jPanel37Layout.createSequentialGroup()
                .add(22, 22, 22)
                .add(jPanel37Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel37Layout.createSequentialGroup()
                        .add(jLabel137)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(idCot2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 166, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jPanel37Layout.createSequentialGroup()
                        .add(jLabel140)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(colorCot2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(checkColor))
                    .add(jPanel37Layout.createSequentialGroup()
                        .add(jLabel138)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(estatusCotizacion2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 165, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(checkEstatus)))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jPanel37Layout.linkSize(new java.awt.Component[] {jLabel137, jLabel138, jLabel140}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel37Layout.linkSize(new java.awt.Component[] {colorCot2, estatusCotizacion2, idCot2}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel37Layout.setVerticalGroup(
            jPanel37Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel37Layout.createSequentialGroup()
                .add(jPanel37Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel141)
                    .add(jLabel142))
                .add(43, 43, 43)
                .add(jPanel37Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel137)
                    .add(idCot2))
                .add(18, 18, 18)
                .add(jPanel37Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel138)
                    .add(estatusCotizacion2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(checkEstatus))
                .add(18, 18, 18)
                .add(jPanel37Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(colorCot2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel140)
                    .add(checkColor))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 41, Short.MAX_VALUE)
                .add(ModificarCotizacion)
                .addContainerGap())
        );

        jPanel37Layout.linkSize(new java.awt.Component[] {checkEstatus, colorCot2, estatusCotizacion2, idCot2}, org.jdesktop.layout.GroupLayout.VERTICAL);

        org.jdesktop.layout.GroupLayout jPanel35Layout = new org.jdesktop.layout.GroupLayout(jPanel35);
        jPanel35.setLayout(jPanel35Layout);
        jPanel35Layout.setHorizontalGroup(
            jPanel35Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel35Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel37, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 289, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(18, 18, 18)
                .add(jPanel36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 294, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(340, Short.MAX_VALUE))
        );
        jPanel35Layout.setVerticalGroup(
            jPanel35Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel35Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel35Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel36, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)
                    .add(jPanel37, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE))
                .addContainerGap())
        );

        tablaCotizaciones.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "COTIZACION", "Estatus", "Fecha Cotizacion", "Color", "Monto Total", "EVENTO", "Fecha Evento", "Hora Inicio", "Hora Fin", "Ejecutivo", "Rif Cliente Compania", "Cedula Cliente Particular"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaCotizaciones.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaCotizaciones.getTableHeader().setReorderingAllowed(false);
        tablaCotizaciones.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaCotizacionesMouseClicked(evt);
            }
        });
        jScrollPane12.setViewportView(tablaCotizaciones);

        mostrarCotizaciones.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        mostrarCotizaciones.setText("Mostrar");
        mostrarCotizaciones.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarCotizacionesActionPerformed(evt);
            }
        });

        jLabel74.setForeground(new java.awt.Color(0, 102, 204));
        jLabel74.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/lists_1.png"))); // NOI18N
        jLabel74.setText("Cotizaciones:");

        org.jdesktop.layout.GroupLayout jPanel27Layout = new org.jdesktop.layout.GroupLayout(jPanel27);
        jPanel27.setLayout(jPanel27Layout);
        jPanel27Layout.setHorizontalGroup(
            jPanel27Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel27Layout.createSequentialGroup()
                .add(jPanel27Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel27Layout.createSequentialGroup()
                        .addContainerGap()
                        .add(jPanel35, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel27Layout.createSequentialGroup()
                        .add(26, 26, 26)
                        .add(jPanel27Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel74)
                            .add(jPanel27Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                .add(jScrollPane12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 935, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .add(mostrarCotizaciones)))))
                .addContainerGap())
        );
        jPanel27Layout.setVerticalGroup(
            jPanel27Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel27Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel74)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 8, Short.MAX_VALUE)
                .add(jScrollPane12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 215, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(mostrarCotizaciones, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel35, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 279, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Cotizaciones", jPanel27);

        jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Detalles del Evento", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(0, 51, 204))); // NOI18N
        jPanel17.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel17.setPreferredSize(new java.awt.Dimension(810, 283));

        tablaCronogramaEventos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Estatus", "Color", "Evento", "Fecha Evento", "Hora Inicio", "Hora Fin", "Ejecutivo", "Cliente Compania", "Cliente Particular"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaCronogramaEventos.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaCronogramaEventos.getTableHeader().setReorderingAllowed(false);
        tablaCronogramaEventos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaCronogramaEventosMouseClicked(evt);
            }
        });
        jScrollPane6.setViewportView(tablaCronogramaEventos);

        org.jdesktop.layout.GroupLayout jPanel17Layout = new org.jdesktop.layout.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 935, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 242, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel25.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Detalles del Cliente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(0, 51, 204))); // NOI18N
        jPanel25.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel25.setPreferredSize(new java.awt.Dimension(272, 270));

        jLabel78.setText("Cedula/Rif:");

        jLabel79.setText("Nombre:");

        jLabel97.setText("Direccion:");

        jLabel98.setText("Telefono:");

        jLabelCedulaCliente.setText("Cedula/Rif Cliente");

        jLabelNombreCliente.setText("Nombre y Apellido Cliente");

        jLabelTelefonoCliente.setText("Telefono Cliente");

        jTextAreaDireccionCliente.setColumns(20);
        jTextAreaDireccionCliente.setRows(5);
        jScrollPane9.setViewportView(jTextAreaDireccionCliente);

        org.jdesktop.layout.GroupLayout jPanel25Layout = new org.jdesktop.layout.GroupLayout(jPanel25);
        jPanel25.setLayout(jPanel25Layout);
        jPanel25Layout.setHorizontalGroup(
            jPanel25Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel25Layout.createSequentialGroup()
                .addContainerGap(29, Short.MAX_VALUE)
                .add(jPanel25Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel25Layout.createSequentialGroup()
                        .add(jLabel98)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabelTelefonoCliente))
                    .add(jPanel25Layout.createSequentialGroup()
                        .add(jLabel97)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jScrollPane9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jPanel25Layout.createSequentialGroup()
                        .add(jLabel79)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabelNombreCliente))
                    .add(jPanel25Layout.createSequentialGroup()
                        .add(jLabel78)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabelCedulaCliente)))
                .add(31, 31, 31))
        );

        jPanel25Layout.linkSize(new java.awt.Component[] {jLabel78, jLabel79, jLabel97, jLabel98}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel25Layout.linkSize(new java.awt.Component[] {jLabelCedulaCliente, jLabelNombreCliente, jLabelTelefonoCliente}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPanel25Layout.setVerticalGroup(
            jPanel25Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel25Layout.createSequentialGroup()
                .add(26, 26, 26)
                .add(jPanel25Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel78)
                    .add(jLabelCedulaCliente))
                .add(18, 18, 18)
                .add(jPanel25Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel79)
                    .add(jLabelNombreCliente))
                .add(18, 18, 18)
                .add(jPanel25Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel97)
                    .add(jScrollPane9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 79, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel25Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel98)
                    .add(jLabelTelefonoCliente))
                .add(53, 53, 53))
        );

        jLabel45.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/logoPeq.png"))); // NOI18N

        jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Escoger mes Evento", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(0, 51, 204))); // NOI18N

        mostrarContratados3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        mostrarContratados3.setText("Mostrar");
        mostrarContratados3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarContratados3ActionPerformed(evt);
            }
        });

        jLabel46.setText("Seleccione el mes y el año en el");

        jLabel47.setText("que desea consultar eventos.");

        jLabel48.setForeground(new java.awt.Color(0, 102, 204));
        jLabel48.setText("NOTA:");

        jLabel49.setText("La consulta retornara solo aquellos");

        jLabel50.setText("eventos que han sido aprobados.");

        jCheckBoxEvento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBoxEventoActionPerformed(evt);
            }
        });

        jComboBoxEjecutivos.setToolTipText("Ver por Ejecutivo");
        jComboBoxEjecutivos.setEnabled(false);

        jLabel108.setForeground(new java.awt.Color(51, 51, 51));
        jLabel108.setText("(Ver por Ejecutivo)");

        org.jdesktop.layout.GroupLayout jPanel21Layout = new org.jdesktop.layout.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel21Layout.createSequentialGroup()
                .add(22, 22, 22)
                .add(jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel46)
                    .add(jLabel47)
                    .add(jLabel48)
                    .add(jLabel49)
                    .add(jLabel50))
                .addContainerGap(131, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel21Layout.createSequentialGroup()
                        .add(27, 27, 27)
                        .add(jMonthChooserEvento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jYearChooserEvento, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 73, Short.MAX_VALUE))
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel21Layout.createSequentialGroup()
                        .add(jCheckBoxEvento)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jComboBoxEjecutivos, 0, 177, Short.MAX_VALUE))
                    .add(mostrarContratados3))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jLabel108)
                .addContainerGap())
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel46)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel47)
                .add(18, 18, 18)
                .add(jLabel48)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel49)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel50)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 26, Short.MAX_VALUE)
                .add(jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jMonthChooserEvento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jYearChooserEvento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jCheckBoxEvento)
                    .add(jPanel21Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(jComboBoxEjecutivos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(jLabel108)))
                .add(18, 18, 18)
                .add(mostrarContratados3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        org.jdesktop.layout.GroupLayout jPanel16Layout = new org.jdesktop.layout.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel16Layout.createSequentialGroup()
                .add(jPanel16Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel16Layout.createSequentialGroup()
                        .add(91, 91, 91)
                        .add(jLabel45)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 47, Short.MAX_VALUE)
                        .add(jPanel21, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPanel25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 296, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(59, 59, 59))
                    .add(jPanel16Layout.createSequentialGroup()
                        .addContainerGap()
                        .add(jPanel17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 967, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel16Layout.createSequentialGroup()
                .add(32, 32, 32)
                .add(jPanel16Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel21, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jLabel45)
                    .add(jPanel25, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 274, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 291, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel16Layout.linkSize(new java.awt.Component[] {jLabel45, jPanel25}, org.jdesktop.layout.GroupLayout.VERTICAL);

        jTabbedPane1.addTab("Cronograma de Eventos", jPanel16);

        jPanel31.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Detalles del Cliente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(0, 51, 204))); // NOI18N
        jPanel31.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 12));
        jPanel31.setPreferredSize(new java.awt.Dimension(810, 283));

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/search.png"))); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jLabel52.setForeground(new java.awt.Color(0, 102, 204));
        jLabel52.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/edit_user.png"))); // NOI18N
        jLabel52.setText("Clientes Particulares:");

        jPanel32.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        tablaClientesPartServicios.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Cedula", "Nombre", "Apellido", "Direccion", "Telefono"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaClientesPartServicios.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaClientesPartServicios.getTableHeader().setReorderingAllowed(false);
        tablaClientesPartServicios.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaClientesPartServiciosMouseClicked(evt);
            }
        });
        jScrollPane11.setViewportView(tablaClientesPartServicios);

        org.jdesktop.layout.GroupLayout jPanel32Layout = new org.jdesktop.layout.GroupLayout(jPanel32);
        jPanel32.setLayout(jPanel32Layout);
        jPanel32Layout.setHorizontalGroup(
            jPanel32Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel32Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane11, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 849, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel32Layout.setVerticalGroup(
            jPanel32Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel32Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane11, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
                .addContainerGap())
        );

        jLabel53.setText("Seleccione la fecha a consultar:");

        jPanel33.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        tablaClientesCompServicios.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Rif", "Nombre", "Direccion", "Telefono"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaClientesCompServicios.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tablaClientesCompServicios.getTableHeader().setReorderingAllowed(false);
        tablaClientesCompServicios.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaClientesCompServiciosMouseClicked(evt);
            }
        });
        jScrollPane13.setViewportView(tablaClientesCompServicios);

        org.jdesktop.layout.GroupLayout jPanel33Layout = new org.jdesktop.layout.GroupLayout(jPanel33);
        jPanel33.setLayout(jPanel33Layout);
        jPanel33Layout.setHorizontalGroup(
            jPanel33Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel33Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 849, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel33Layout.setVerticalGroup(
            jPanel33Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel33Layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
                .addContainerGap())
        );

        jLabel54.setForeground(new java.awt.Color(0, 102, 204));
        jLabel54.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/agt_family.png"))); // NOI18N
        jLabel54.setText("Clientes Companias:");

        jLabel55.setText("NOTA: Esta consulta retornara los clientes que han contratado nuestros servicios mas de dos veces en el año seleccionado");

        org.jdesktop.layout.GroupLayout jPanel31Layout = new org.jdesktop.layout.GroupLayout(jPanel31);
        jPanel31.setLayout(jPanel31Layout);
        jPanel31Layout.setHorizontalGroup(
            jPanel31Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel31Layout.createSequentialGroup()
                .add(23, 23, 23)
                .add(jPanel31Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel31Layout.createSequentialGroup()
                        .add(10, 10, 10)
                        .add(jPanel31Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(jPanel31Layout.createSequentialGroup()
                                .add(10, 10, 10)
                                .add(jPanel32, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .add(jLabel54)
                            .add(jPanel31Layout.createSequentialGroup()
                                .add(10, 10, 10)
                                .add(jPanel33, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .add(jLabel52)))
                    .add(jPanel31Layout.createSequentialGroup()
                        .add(jLabel53)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jYearChooserServicios, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(28, 28, 28)
                        .add(jLabel55)))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jPanel31Layout.setVerticalGroup(
            jPanel31Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel31Layout.createSequentialGroup()
                .add(jPanel31Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(jLabel55)
                    .add(jButton1)
                    .add(jYearChooserServicios, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel53))
                .add(1, 1, 1)
                .add(jLabel52)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jLabel54, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(jPanel33, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(22, 22, 22))
        );

        jPanel31Layout.linkSize(new java.awt.Component[] {jButton1, jLabel53, jLabel55, jYearChooserServicios}, org.jdesktop.layout.GroupLayout.VERTICAL);

        org.jdesktop.layout.GroupLayout jPanel29Layout = new org.jdesktop.layout.GroupLayout(jPanel29);
        jPanel29.setLayout(jPanel29Layout);
        jPanel29Layout.setHorizontalGroup(
            jPanel29Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel29Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 969, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
        );
        jPanel29Layout.setVerticalGroup(
            jPanel29Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel29Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel31, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 576, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Clientes y Nuestros Servicios", jPanel29);

        salir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/exit.png"))); // NOI18N
        salir.setText("Salir");
        salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                salirActionPerformed(evt);
            }
        });

        archivo.setText("Archivo");

        nuevaCotizacion.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        nuevaCotizacion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/add.png"))); // NOI18N
        nuevaCotizacion.setText("Nueva Cotizacion...");
        nuevaCotizacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nuevaCotizacionActionPerformed(evt);
            }
        });
        archivo.add(nuevaCotizacion);

        informacionSistema.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        informacionSistema.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/database.png"))); // NOI18N
        informacionSistema.setText("Informacion del Sistema...");
        informacionSistema.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                informacionSistemaActionPerformed(evt);
            }
        });
        archivo.add(informacionSistema);

        jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/money.png"))); // NOI18N
        jMenuItem2.setText("Cancelacion de Eventos");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        archivo.add(jMenuItem2);
        archivo.add(jSeparator1);

        exit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
        exit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/exit.png"))); // NOI18N
        exit.setText("Salir");
        exit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitActionPerformed(evt);
            }
        });
        archivo.add(exit);

        jMenuBar1.add(archivo);

        jMenu1.setText("Ayuda");

        acercaDe.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        acercaDe.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/info.png"))); // NOI18N
        acercaDe.setText("Acerca de MDJ");
        acercaDe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                acercaDeActionPerformed(evt);
            }
        });
        jMenu1.add(acercaDe);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(salir)
                    .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 1004, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 624, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(salir)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void nuevaCotizacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nuevaCotizacionActionPerformed
        NuevaCotizacion cot;
        try {
            cot = new NuevaCotizacion();
            cot.setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }

}//GEN-LAST:event_nuevaCotizacionActionPerformed

    private void informacionSistemaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_informacionSistemaActionPerformed
        Informacion info = new Informacion();
        info.setVisible(true);
}//GEN-LAST:event_informacionSistemaActionPerformed

    private void exitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea realizar esta operacion?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);
        if (resultado == 0) {
            System.exit(0);
        }
}//GEN-LAST:event_exitActionPerformed

    private void checkCedulaEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkCedulaEActionPerformed
        if (checkCedulaE.isSelected()) {
            cedulaEjec2.setEnabled(true);
        } else {
            cedulaEjec2.setEnabled(false);
        }

        try {
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();

            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

            Integer Id = Integer.parseInt(tablaEventos.getValueAt(tablaEventos.getSelectedRow(), 0).toString());

            for (Iterator iter = eventos.iterator(); iter.hasNext();) {
                Evento eve = (Evento) iter.next();

                if (eve.getIdEvento().equals(Id)) {
                    if (!checkCedulaE.isSelected()) {
                        for (int j = 0; j < ejecutivos.size(); j++) {
                            if (eve.getEjecutivoCedula().equals(ejecutivos.get(j).getCedula())) {
                                String Nombre = ejecutivos.get(j).getNombre() + " " + ejecutivos.get(j).getApellido();
                                cedulaEjec2.setSelectedItem(eve.getEjecutivoCedula() + ", " + Nombre);
                            }
                        }
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkCedulaEActionPerformed

    private void checkHoraFinEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkHoraFinEActionPerformed
        if (checkHoraFinE.isSelected()) {
            horaFin2.setEnabled(true);
        } else {
            horaFin2.setEnabled(false);
        }

        try {
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();
            Integer Id = Integer.parseInt(tablaEventos.getValueAt(tablaEventos.getSelectedRow(), 0).toString());

            for (Iterator iter = eventos.iterator(); iter.hasNext();) {
                Evento eve = (Evento) iter.next();

                if (eve.getIdEvento().equals(Id)) {
                    if (!checkHoraFinE.isSelected()) {
                        horaFin2.setText(eve.getHoraFin().toString());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkHoraFinEActionPerformed

    private void checkHoraInicioEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkHoraInicioEActionPerformed
        if (checkHoraInicioE.isSelected()) {
            horaInicio2.setEnabled(true);
        } else {
            horaInicio2.setEnabled(false);
        }

        try {
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();
            Integer Id = Integer.parseInt(tablaEventos.getValueAt(tablaEventos.getSelectedRow(), 0).toString());

            for (Iterator iter = eventos.iterator(); iter.hasNext();) {
                Evento eve = (Evento) iter.next();

                if (eve.getIdEvento().equals(Id)) {
                    if (!checkHoraInicioE.isSelected()) {
                        horaInicio2.setText(eve.getHoraInicio().toString());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkHoraInicioEActionPerformed

    private void checkDescripcionEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDescripcionEActionPerformed
        if (checkDescripcionE.isSelected()) {
            descripcion2.setEnabled(true);
        } else {
            descripcion2.setEnabled(false);
        }

        try {
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();
            Integer Id = Integer.parseInt(tablaEventos.getValueAt(tablaEventos.getSelectedRow(), 0).toString());

            for (Iterator iter = eventos.iterator(); iter.hasNext();) {
                Evento eve = (Evento) iter.next();

                if (eve.getIdEvento().equals(Id)) {
                    if (!checkDescripcionE.isSelected()) {
                        descripcion2.setText(eve.getDescripcion());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkDescripcionEActionPerformed

    private void checkFechaEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkFechaEActionPerformed
        if (checkFechaE.isSelected()) {
            fechaEvento2.setEnabled(true);
        } else {
            fechaEvento2.setEnabled(false);
        }

        try {
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();
            Integer Id = Integer.parseInt(tablaEventos.getValueAt(tablaEventos.getSelectedRow(), 0).toString());

            for (Iterator iter = eventos.iterator(); iter.hasNext();) {
                Evento eve = (Evento) iter.next();

                if (eve.getIdEvento().equals(Id)) {
                    if (!checkFechaE.isSelected()) {
                        Date fecha = eve.getFecha();
                        fechaEvento2.setDate(fecha);
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkFechaEActionPerformed

    private void checkCostoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkCostoActionPerformed

        if (checkCosto.isSelected()) {
            costo2.setEnabled(true);
        } else {
            costo2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();
            Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());


            for (Iterator iter = contratados.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkCosto.isSelected()) {
                        costo2.setText(Double.toString(emp.getCostoHoraContratado()));
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkCostoActionPerformed

    private void checkCargoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkCargoActionPerformed

        if (checkCargo.isSelected()) {
            cargo2.setEnabled(true);
        } else {
            cargo2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();
            Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());


            for (Iterator iter = contratados.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkCargo.isSelected()) {
                        cargo2.setText(emp.getCargoContratado());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkCargoActionPerformed

    private void checkTelefonoCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkTelefonoCActionPerformed

        if (checkTelefonoC.isSelected()) {
            telefonoC2.setEnabled(true);
        } else {
            telefonoC2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();
            Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());


            for (Iterator iter = contratados.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkTelefonoC.isSelected()) {
                        telefonoC2.setText(emp.getTelefono());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkTelefonoCActionPerformed

    private void checkApellidoCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkApellidoCActionPerformed

        if (checkApellidoC.isSelected()) {
            apellidoC2.setEnabled(true);
        } else {
            apellidoC2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();
            Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());

            for (Iterator iter = contratados.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkApellidoC.isSelected()) {
                        apellidoC2.setText(emp.getApellido());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkApellidoCActionPerformed

    private void checkNombreCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkNombreCActionPerformed
        if (checkNombreC.isSelected()) {
            nombreC2.setEnabled(true);
        } else {
            nombreC2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();
            Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());

            for (Iterator iter = contratados.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkNombreC.isSelected()) {
                        nombreC2.setText(emp.getNombre());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkNombreCActionPerformed

    private void costoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_costoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_costoActionPerformed

    private void cargoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cargoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_cargoActionPerformed

    private void apellidoCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_apellidoCActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_apellidoCActionPerformed

    private void nombreCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nombreCActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_nombreCActionPerformed

    private void checkSalarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkSalarioActionPerformed
        if (checkSalario.isSelected()) {
            salario2.setEnabled(true);
        } else {
            salario2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            Integer Cedula = Integer.parseInt(tablaEjecutivos.getValueAt(tablaEjecutivos.getSelectedRow(), 0).toString());

            for (Iterator iter = ejecutivos.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkSalario.isSelected()) {
                        salario2.setText(Double.toString(emp.getSalarioEjecutivo()));
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkSalarioActionPerformed

    private void checkTelefonoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkTelefonoActionPerformed

        if (checkTelefono.isSelected()) {
            telefono2.setEnabled(true);
        } else {
            telefono2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            Integer Cedula = Integer.parseInt(tablaEjecutivos.getValueAt(tablaEjecutivos.getSelectedRow(), 0).toString());

            for (Iterator iter = ejecutivos.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkTelefono.isSelected()) {
                        telefono2.setText(emp.getTelefono());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkTelefonoActionPerformed

    private void checkApellidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkApellidoActionPerformed

        if (checkApellido.isSelected()) {
            apellido2.setEnabled(true);
        } else {
            apellido2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            Integer Cedula = Integer.parseInt(tablaEjecutivos.getValueAt(tablaEjecutivos.getSelectedRow(), 0).toString());

            for (Iterator iter = ejecutivos.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkApellido.isSelected()) {
                        apellido2.setText(emp.getApellido());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkApellidoActionPerformed

    private void checkNombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkNombreActionPerformed

        if (checkNombre.isSelected()) {
            nombre2.setEnabled(true);
        } else {
            nombre2.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            Integer Cedula = Integer.parseInt(tablaEjecutivos.getValueAt(tablaEjecutivos.getSelectedRow(), 0).toString());

            for (Iterator iter = ejecutivos.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkNombre.isSelected()) {
                        nombre2.setText(emp.getNombre());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_checkNombreActionPerformed

    private void salarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salarioActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_salarioActionPerformed

    private void apellidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_apellidoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_apellidoActionPerformed

    private void nombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nombreActionPerformed
}//GEN-LAST:event_nombreActionPerformed

    private void mostrarEjecutivosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarEjecutivosActionPerformed
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

            this.cargarTablaEjecutivos(ejecutivos);

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_mostrarEjecutivosActionPerformed

    private void limpiarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_limpiarActionPerformed
        cedula.setText("");
        nombre.setText("");
        apellido.setText("");
        telefono.setText("");
        salario.setText("");
}//GEN-LAST:event_limpiarActionPerformed

    private void insertarEjecutivoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarEjecutivoActionPerformed
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

            if ((cedula.getText().equals("")) || (nombre.getText().equals("")) || (apellido.getText().equals("")) || (telefono.getText().equals("")) || (salario.getText().equals(""))) {
                JOptionPane.showMessageDialog(aviso, "Debe llenar todos los campos ", "Warning", 1);
            } else {

                Integer Cedula = Integer.parseInt(cedula.getText());
                String Nombre = nombre.getText();
                String Apellido = apellido.getText();
                String Telefono = telefono.getText();
                String str = salario.getText();
                double Salario = Double.valueOf(str).doubleValue();
                boolean flag = false;
                ejecutivo:
                for (Empleado e : ejecutivos) {
                    if (e.getCedula().equals(Cedula)) {
                        flag = true;
                        if (e.isHabilitado().equals("s")) {
                            JOptionPane.showMessageDialog(null, "Error: El ejecutivo ya existe, y esta habilitado", "Resultado", JOptionPane.ERROR_MESSAGE);
                        } else if (e.isHabilitado().equals("n")) {
                            e.setHabilitado("s");
                            boolean result = controlEmpleado.modificarEjecutivo(e);
                            ejecutivos = controlEmpleado.consultarEjecutivos();

                            if (result) {
                                JOptionPane.showMessageDialog(null, "El ejecutivo ha sido habilitado con Exito", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                                this.cargarTablaEjecutivos(ejecutivos);
                            } else {
                                JOptionPane.showMessageDialog(null, "Error: El ejecutivo no pudo ser habilitado", "Resultado", JOptionPane.ERROR_MESSAGE);
                            }
                        }
                        break ejecutivo;
                    }
                }

                if(!flag){
                    Empleado empleado = new Empleado(Cedula, Nombre, Apellido, Telefono, "ejecutivo", "s", Salario);

                    boolean result = controlEmpleado.agregarEmpleado(empleado);
                    ejecutivos = controlEmpleado.consultarEjecutivos();

                    if (result) {
                        JOptionPane.showMessageDialog(null, "El ejecutivo ha sido agregado con Exito", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                        this.cargarTablaEjecutivos(ejecutivos);
                    } else {
                        JOptionPane.showMessageDialog(null, "Error: El ejecutivo no pudo ser agregado", "Resultado", JOptionPane.ERROR_MESSAGE);
                    }
                }

            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_insertarEjecutivoActionPerformed

    private void eliminarEjecutivoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eliminarEjecutivoActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea realizar esta operacion?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);

        if (resultado == 0) {
            try {
                controlEmpleado = new ControlEmpleado();
                List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
                Integer Cedula = Integer.parseInt(tablaEjecutivos.getValueAt(tablaEjecutivos.getSelectedRow(), 0).toString());

                for (Iterator iter = ejecutivos.iterator(); iter.hasNext();) {
                    Empleado emp = (Empleado) iter.next();

                    if (emp.getCedula().equals(Cedula)) {

                        if (emp.isHabilitado().equals("s")) {
                            emp.setHabilitado("n");
                            boolean result = controlEmpleado.modificarEjecutivo(emp);
                            ejecutivos = controlEmpleado.consultarEjecutivos();
                            if (result) {
                                this.cargarTablaEjecutivos(ejecutivos);
                                tablaEjecutivos.setRowSelectionInterval(0, 0);
                                JOptionPane.showMessageDialog(null, "El ejecutivo ha sido eliminado con Exito", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                            } else {
                                JOptionPane.showMessageDialog(null, "Error: El ejecutivo no se pudo eliminar", "Resultado", JOptionPane.ERROR_MESSAGE);
                            }
                        } else if (emp.isHabilitado().equals("n")) {
                            JOptionPane.showMessageDialog(null, "Error: El ejecutivo ya esta deshabilitado", "Resultado", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                }
            } catch (IOException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            }
        }

}//GEN-LAST:event_eliminarEjecutivoActionPerformed

    private void salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salirActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea salir del sistema?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);
        if (resultado == 0) {
            System.exit(0);
        }
}//GEN-LAST:event_salirActionPerformed

    private void insertarEjecutivo1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarEjecutivo1ActionPerformed
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            Integer Cedula = Integer.parseInt(tablaEjecutivos.getValueAt(tablaEjecutivos.getSelectedRow(), 0).toString());
            int row = tablaEjecutivos.getSelectedRow();

            for (Iterator iter = ejecutivos.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {

                    if (checkNombre.isSelected()) {
                        emp.setNombre(nombre2.getText());
                    }

                    if (checkApellido.isSelected()) {
                        emp.setApellido(apellido2.getText());
                    }

                    if (checkTelefono.isSelected()) {
                        emp.setTelefono(telefono2.getText());
                    }

                    if (checkSalario.isSelected()) {
                        emp.setSalarioEjecutivo(Double.valueOf(salario2.getText()).doubleValue());
                    }

                    if (checkEstatusEjecutivo.isSelected()) {
                        emp.setHabilitado(jComboBoxEstatusEjecutivo.getSelectedItem().toString());
                    }

                    boolean result = controlEmpleado.modificarEjecutivo(emp);
                    ejecutivos = controlEmpleado.consultarEjecutivos();

                    if (result) {
                        this.cargarTablaEjecutivos(ejecutivos);
                        tablaEjecutivos.setRowSelectionInterval(row, row);
                        JOptionPane.showMessageDialog(null, "El ejecutivo fue modificado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                    } else {
                        JOptionPane.showMessageDialog(null, "Error: El ejecutivo no pudo ser modificado", "Resultado", JOptionPane.ERROR_MESSAGE);
                    }
                }
            }

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_insertarEjecutivo1ActionPerformed

    private void mostrarContratadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarContratadosActionPerformed
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();

            this.cargarTablaContratados(contratados);
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_mostrarContratadosActionPerformed

    private void limpiar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_limpiar1ActionPerformed
        cedulaC.setText("");
        nombreC.setText("");
        apellidoC.setText("");
        telefonoC.setText("");
        cargo.setText("");
        costo.setText("");
    }//GEN-LAST:event_limpiar1ActionPerformed

    private void insertarEjecutivo2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarEjecutivo2ActionPerformed
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();

            if ((cedulaC.getText().equals("")) || (nombreC.getText().equals("")) || (apellidoC.getText().equals("")) || (telefonoC.getText().equals("")) || (cargo.getText().equals("")) || (costo.getText().equals(""))) {
                JOptionPane.showMessageDialog(aviso, "Debe llenar todos los campos ", "Warning", 1);
            } else {

                Integer Cedula = Integer.parseInt(cedulaC.getText());
                String Nombre = nombreC.getText();
                String Apellido = apellidoC.getText();
                String Telefono = telefonoC.getText();
                String Cargo = cargo.getText();
                double Costo = Double.valueOf(costo.getText()).doubleValue();

                empleado:
                for (Empleado e : contratados) {
                    if (e.getCedula().equals(Cedula)) {
                        if (e.isHabilitado().equals("s")) {
                            JOptionPane.showMessageDialog(null, "Error: El empleado ya existe, y esta habilitado", "Resultado", JOptionPane.ERROR_MESSAGE);
                        } else if (e.isHabilitado().equals("n")) {
                            e.setHabilitado("s");
                            boolean result = controlEmpleado.modificarContratado(e);
                            contratados = controlEmpleado.consultarContratados();

                            if (result) {
                                JOptionPane.showMessageDialog(null, "El empleado ha sido habilitado con Exito", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                                this.cargarTablaContratados(contratados);
                            } else {
                                JOptionPane.showMessageDialog(null, "Error: El empleado no pudo ser habilitado", "Resultado", JOptionPane.ERROR_MESSAGE);
                            }
                        }
                        break empleado;
                    } else {

                        Empleado empleado = new Empleado(Cedula, Nombre, Apellido, Telefono, "contratado", "s", Cargo, Costo);

                        boolean result = controlEmpleado.agregarEmpleado(empleado);
                        contratados = controlEmpleado.consultarContratados();

                        if (result) {
                            JOptionPane.showMessageDialog(null, "El ejecutivo ha sido agregado con Exito", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                            this.cargarTablaEjecutivos(contratados);
                        } else {
                            JOptionPane.showMessageDialog(null, "Error: El ejecutivo no pudo ser agregado", "Resultado", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_insertarEjecutivo2ActionPerformed

    private void eliminarEjecutivo1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eliminarEjecutivo1ActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea realizar esta operacion?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);

        if (resultado == 0) {
            try {
                controlEmpleado = new ControlEmpleado();
                List<Empleado> contratados = controlEmpleado.consultarContratados();
                Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());

                for (Iterator iter = contratados.iterator(); iter.hasNext();) {
                    Empleado emp = (Empleado) iter.next();

                    if (emp.getCedula().equals(Cedula)) {

                        if (emp.isHabilitado().equals("s")) {
                            emp.setHabilitado("n");
                            boolean result = controlEmpleado.modificarContratado(emp);
                            contratados = controlEmpleado.consultarContratados();
                            if (result) {
                                this.cargarTablaContratados(contratados);
                                tablaContratados.setRowSelectionInterval(0, 0);
                                JOptionPane.showMessageDialog(null, "El empleado ha sido eliminado con Exito", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                            } else {
                                JOptionPane.showMessageDialog(null, "Error: El empleado no se pudo eliminar", "Resultado", JOptionPane.ERROR_MESSAGE);
                            }
                        } else if (emp.isHabilitado().equals("n")) {
                            JOptionPane.showMessageDialog(null, "Error: El empleado ya esta deshabilitado", "Resultado", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                }
            } catch (IOException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_eliminarEjecutivo1ActionPerformed

    private void insertarEjecutivo3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarEjecutivo3ActionPerformed
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();
            Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());
            int row = tablaContratados.getSelectedRow();

            for (Iterator iter = contratados.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {

                    if (checkNombreC.isSelected()) {
                        emp.setNombre(nombreC2.getText());
                    }

                    if (checkApellidoC.isSelected()) {
                        emp.setApellido(apellidoC2.getText());
                    }

                    if (checkTelefonoC.isSelected()) {
                        emp.setTelefono(telefonoC2.getText());
                    }

                    if (checkCargo.isSelected()) {
                        emp.setCargoContratado(cargo2.getText());
                    }

                    if (checkCosto.isSelected()) {
                        emp.setCostoHoraContratado(Double.valueOf(costo2.getText()).doubleValue());
                    }

                    if (checkEstatusContratado.isSelected()) {
                        emp.setHabilitado(jComboBoxEstatusContratado.getSelectedItem().toString());
                    }


                    boolean result = controlEmpleado.modificarContratado(emp);
                    contratados = controlEmpleado.consultarContratados();

                    if (result) {
                        this.cargarTablaContratados(contratados);
                        tablaContratados.setRowSelectionInterval(row, row);
                        JOptionPane.showMessageDialog(null, "El contratado ha sido modificado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                    } else {
                        JOptionPane.showMessageDialog(null, "Error: El contratado no pudo ser modificado", "Resultado", JOptionPane.ERROR_MESSAGE);
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_insertarEjecutivo3ActionPerformed

    private void mostrarContratados1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarContratados1ActionPerformed
        try {
            ModificarEvento.setEnabled(true);
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();

            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

            this.cargarTablaEventos(eventos, ejecutivos);
            this.cargarCedulasEjecutivosEvento();

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_mostrarContratados1ActionPerformed

    private void ModificarEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ModificarEventoActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea realizar esta operacion?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);

        if (resultado == 0) {
            try {
                controlEvento = new ControlEvento();
                List<Evento> eventos = controlEvento.consultarEventos();
                Integer Id = Integer.parseInt(tablaEventos.getValueAt(tablaEventos.getSelectedRow(), 0).toString());
                int row = tablaEventos.getSelectedRow();

                for (Iterator iter = eventos.iterator(); iter.hasNext();) {
                    Evento eve = (Evento) iter.next();

                    if (eve.getIdEvento().equals(Id)) {

                        if (checkFechaE.isSelected()) {
                            java.sql.Date FechaEv = new java.sql.Date(fechaEvento2.getDate().getTime());
                            eve.setFecha(FechaEv);
                        }

                        if (checkDescripcionE.isSelected()) {
                            eve.setDescripcion(descripcion2.getText());
                        }

                        if (jCheckBoxLugar.isSelected()) {
                            eve.setLugar(jTextAreaLugar.getText());
                        }

                        if (checkHoraInicioE.isSelected()) {
                            eve.setHoraInicio(Time.valueOf(horaInicio2.getText()));
                        }

                        if (checkHoraFinE.isSelected()) {
                            eve.setHoraFin(Time.valueOf(horaFin2.getText()));
                        }

                        if (checkCedulaE.isSelected()) {
                            String[] arreglo = cedulaEjec2.getSelectedItem().toString().split(", ");
                            Integer cedulaEje = Integer.parseInt(arreglo[0]);
                            eve.setEjecutivoCedula(cedulaEje);
                        }

                        boolean result = controlEvento.modificarEvento(eve);
                        eventos = controlEvento.consultarEventos();
                        controlEmpleado = new ControlEmpleado();
                        List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

                        if (result) {
                            this.cargarTablaEventos(eventos, ejecutivos);
                            tablaEventos.setRowSelectionInterval(row, row);
                            JOptionPane.showMessageDialog(null, "El evento ha sido modificado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                        } else {
                            JOptionPane.showMessageDialog(null, "Error: El evento no pudo ser modificado", "Resultado", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                }
            } catch (IOException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
}//GEN-LAST:event_ModificarEventoActionPerformed

    private void cedulaEjec2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cedulaEjec2ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_cedulaEjec2ActionPerformed

    private void mostrarContratados2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarContratados2ActionPerformed
        try {
            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

            this.cargarTablaParticulares(particulares);
            this.cargarCedulasEjecutivosPart();

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_mostrarContratados2ActionPerformed

    private void nombreParticularActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nombreParticularActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_nombreParticularActionPerformed

    private void limpiar6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_limpiar6ActionPerformed
        cedulaParticular.setText("");
        nombreParticular.setText("");
        apellidoParticular.setText("");
        direccionParticular.setText("");
        telefonoParticular.setText("");
    }//GEN-LAST:event_limpiar6ActionPerformed

    private void insertarParticularActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarParticularActionPerformed
        try {
            controlClientePart = new ControlClienteParticular();

            if ((cedulaParticular.getText().equals("")) || (nombreParticular.getText().equals("")) || (apellidoParticular.getText().equals("")) || (direccionParticular.getText().equals("")) || (telefonoParticular.getText().equals(""))) {
                JOptionPane.showMessageDialog(aviso, "Debe llenar todos los campos ", "Warning", 1);
            } else {

                Integer Cedula = Integer.parseInt(cedulaParticular.getText());
                String Nombre = nombreParticular.getText();
                String Apellido = apellidoParticular.getText();
                String Direccion = direccionParticular.getText();
                String Telefono = telefonoParticular.getText();
                String sexo = jComboBoxSexo.getSelectedItem().toString();
                java.sql.Date fechaNacimiento = new java.sql.Date(jDateChooserNac.getDate().getTime());
                ClienteParticular particular = new ClienteParticular(Cedula, Nombre, Apellido, Direccion, Telefono,fechaNacimiento,sexo);

                boolean result = controlClientePart.agregarClienteParticular(particular);
                List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

                if (result) {
                    JOptionPane.showMessageDialog(null, "El cliente particular ha sido agregado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                    this.cargarTablaParticulares(particulares);

                    controlEmpleadoClientePart = new ControlEmpleadoClientePart();
                    String[] arreglo = cedulasEjecutivosPart.getSelectedItem().toString().split(", ");
                    String valor1 = arreglo[0];
                    Integer CedulaEjecutivo = Integer.parseInt(valor1);
                    EmpleadoClientePart clientePart = new EmpleadoClientePart(Cedula, CedulaEjecutivo);

                    boolean resultado = controlEmpleadoClientePart.agregarEmpleadoClientePart(clientePart);

                    if (resultado) {
                        JOptionPane.showMessageDialog(null, "El ejecutivo a atender ha sido agregado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);

                    } else {
                        JOptionPane.showMessageDialog(null, "Error: El ejecutivo a atender no pudo ser agregado", "Resultado", JOptionPane.ERROR_MESSAGE);
                    }

                } else {
                    JOptionPane.showMessageDialog(null, "Error: El cliente particular no pudo ser agregado", "Resultado", JOptionPane.ERROR_MESSAGE);
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }


}//GEN-LAST:event_insertarParticularActionPerformed

    private void checkNombrePartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkNombrePartActionPerformed
        if (checkNombrePart.isSelected()) {
            nombrePart2.setEnabled(true);
        } else {
            nombrePart2.setEnabled(false);
        }

        try {
            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();
            Integer Cedula = Integer.parseInt(tablaParticulares.getValueAt(tablaParticulares.getSelectedRow(), 0).toString());

            for (Iterator iter = particulares.iterator(); iter.hasNext();) {
                ClienteParticular part = (ClienteParticular) iter.next();

                if (part.getCedula().equals(Cedula)) {
                    if (!checkNombrePart.isSelected()) {
                        nombrePart2.setText(part.getNombre());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkNombrePartActionPerformed

    private void checkApellidoPartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkApellidoPartActionPerformed
        if (checkApellidoPart.isSelected()) {
            apellidoPart2.setEnabled(true);
        } else {
            apellidoPart2.setEnabled(false);
        }

        try {
            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();
            Integer Cedula = Integer.parseInt(tablaParticulares.getValueAt(tablaParticulares.getSelectedRow(), 0).toString());

            for (Iterator iter = particulares.iterator(); iter.hasNext();) {
                ClienteParticular part = (ClienteParticular) iter.next();

                if (part.getCedula().equals(Cedula)) {
                    if (!checkApellidoPart.isSelected()) {
                        apellidoPart2.setText(part.getApellido());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkApellidoPartActionPerformed

    private void checkDireccionPartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDireccionPartActionPerformed
        if (checkDireccionPart.isSelected()) {
            direccionPart2.setEnabled(true);
        } else {
            direccionPart2.setEnabled(false);
        }

        try {
            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();
            Integer Cedula = Integer.parseInt(tablaParticulares.getValueAt(tablaParticulares.getSelectedRow(), 0).toString());

            for (Iterator iter = particulares.iterator(); iter.hasNext();) {
                ClienteParticular part = (ClienteParticular) iter.next();

                if (part.getCedula().equals(Cedula)) {
                    if (!checkDireccionPart.isSelected()) {
                        direccionPart2.setText(part.getDireccion());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkDireccionPartActionPerformed

    private void checkTelefonoPartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkTelefonoPartActionPerformed
        if (checkTelefonoPart.isSelected()) {
            telefonoPart2.setEnabled(true);
        } else {
            telefonoPart2.setEnabled(false);
        }

        try {
            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();
            Integer Cedula = Integer.parseInt(tablaParticulares.getValueAt(tablaParticulares.getSelectedRow(), 0).toString());

            for (Iterator iter = particulares.iterator(); iter.hasNext();) {
                ClienteParticular part = (ClienteParticular) iter.next();

                if (part.getCedula().equals(Cedula)) {
                    if (!checkTelefonoPart.isSelected()) {
                        telefonoPart2.setText(part.getTelefono());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkTelefonoPartActionPerformed

    private void ModificarParticularActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ModificarParticularActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea realizar esta operacion?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);

        if (resultado == 0) {
            try {
                controlClientePart = new ControlClienteParticular();
                List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();
                Integer Cedula = Integer.parseInt(tablaParticulares.getValueAt(tablaParticulares.getSelectedRow(), 0).toString());
                int row = tablaParticulares.getSelectedRow();

                for (Iterator iter = particulares.iterator(); iter.hasNext();) {
                    ClienteParticular part = (ClienteParticular) iter.next();

                    if (part.getCedula().equals(Cedula)) {

                        if (checkNombrePart.isSelected()) {
                            part.setNombre(nombrePart2.getText());
                        }

                        if (checkApellidoPart.isSelected()) {
                            part.setApellido(apellidoPart2.getText());
                        }

                        if (checkDireccionPart.isSelected()) {
                            part.setDireccion(direccionPart2.getText());
                        }

                        if (checkTelefonoPart.isSelected()) {
                            part.setTelefono(telefonoPart2.getText());
                        }

                        boolean result = controlClientePart.modificarClienteParticular(part);
                        particulares = controlClientePart.consultarClienteParticular();

                        if (result) {
                            this.cargarTablaParticulares(particulares);
                            tablaParticulares.setRowSelectionInterval(row, row);
                            JOptionPane.showMessageDialog(null, "El cliente particular ha sido modificado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                        } else {
                            JOptionPane.showMessageDialog(null, "Error: El cliente particular no pudo ser modificado", "Resultado", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                }
            } catch (IOException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
}//GEN-LAST:event_ModificarParticularActionPerformed

    private void apellidoParticularActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_apellidoParticularActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_apellidoParticularActionPerformed

    private void mostrarCompaniasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarCompaniasActionPerformed
        try {
            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

            this.cargarTablaCompanias(companias);
            this.cargarCedulasEjecutivosComp();

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_mostrarCompaniasActionPerformed

    private void nombreCompaniaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nombreCompaniaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_nombreCompaniaActionPerformed

    private void limpiar8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_limpiar8ActionPerformed
        rifCompania.setText("");
        nombreCompania.setText("");
        direccionCompania.setText("");
        telefonoCompania.setText("");
    }//GEN-LAST:event_limpiar8ActionPerformed

    private void insertarCompaniaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarCompaniaActionPerformed
        try {
            controlClienteComp = new ControlClienteCompania();

            if ((rifCompania.getText().equals("")) || (nombreCompania.getText().equals("")) || (direccionCompania.getText().equals("")) || (telefonoCompania.getText().equals(""))) {
                JOptionPane.showMessageDialog(aviso, "Debe llenar todos los campos ", "Warning", 1);
            } else {

                String Rif = rifCompania.getText();
                String Nombre = nombreCompania.getText();
                String Direccion = direccionCompania.getText();
                String Telefono = telefonoCompania.getText();

                ClienteCompania compania = new ClienteCompania(Rif, Nombre, Direccion, Telefono);

                boolean result = controlClienteComp.agregarClienteCompania(compania);
                List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

                if (result) {
                    JOptionPane.showMessageDialog(null, "El cliente compania ha sido agregado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                    this.cargarTablaCompanias(companias);

                    controlEmpleadoClienteComp = new ControlEmpleadoClienteComp();
                    String[] arreglo = cedulasEjecutivosComp.getSelectedItem().toString().split(", ");
                    String valor1 = arreglo[0];
                    Integer CedulaEjecutivo = Integer.parseInt(valor1);
                    EmpleadoClienteComp clienteComp = new EmpleadoClienteComp(Rif, CedulaEjecutivo);

                    boolean resultado = controlEmpleadoClienteComp.agregarEmpleadoClienteComp(clienteComp);

                    if (resultado) {
                        JOptionPane.showMessageDialog(null, "El ejecutivo a atender ha sido agregado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);

                    } else {
                        JOptionPane.showMessageDialog(null, "Error: El ejecutivo a atender no pudo ser agregado", "Resultado", JOptionPane.ERROR_MESSAGE);
                    }

                } else {
                    JOptionPane.showMessageDialog(null, "Error: El cliente compania no pudo ser agregado", "Resultado", JOptionPane.ERROR_MESSAGE);
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_insertarCompaniaActionPerformed

    private void checkNombreCompActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkNombreCompActionPerformed
        if (checkNombreComp.isSelected()) {
            nombreComp2.setEnabled(true);
        } else {
            nombreComp2.setEnabled(false);
        }

        try {
            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();
            String Rif = tablaCompanias.getValueAt(tablaCompanias.getSelectedRow(), 0).toString();

            for (Iterator iter = companias.iterator(); iter.hasNext();) {
                ClienteCompania comp = (ClienteCompania) iter.next();

                if (comp.getRif().equals(Rif)) {
                    if (!checkNombreComp.isSelected()) {
                        nombreComp2.setText(comp.getNombre());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkNombreCompActionPerformed

    private void checkDireccionCompActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDireccionCompActionPerformed
        if (checkDireccionComp.isSelected()) {
            direccionComp2.setEnabled(true);
        } else {
            direccionComp2.setEnabled(false);
        }

        try {
            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();
            String Rif = tablaCompanias.getValueAt(tablaCompanias.getSelectedRow(), 0).toString();

            for (Iterator iter = companias.iterator(); iter.hasNext();) {
                ClienteCompania comp = (ClienteCompania) iter.next();

                if (comp.getRif().equals(Rif)) {
                    if (!checkDireccionComp.isSelected()) {
                        direccionComp2.setText(comp.getDireccion());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkDireccionCompActionPerformed

    private void checkTelefonoCompActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkTelefonoCompActionPerformed
        if (checkTelefonoComp.isSelected()) {
            telefonoComp2.setEnabled(true);
        } else {
            telefonoComp2.setEnabled(false);
        }

        try {
            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();
            String Rif = tablaCompanias.getValueAt(tablaCompanias.getSelectedRow(), 0).toString();

            for (Iterator iter = companias.iterator(); iter.hasNext();) {
                ClienteCompania comp = (ClienteCompania) iter.next();

                if (comp.getRif().equals(Rif)) {
                    if (!checkTelefonoComp.isSelected()) {
                        telefonoComp2.setText(comp.getTelefono());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkTelefonoCompActionPerformed

    private void ModificarCompaniaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ModificarCompaniaActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea realizar esta operacion?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);

        if (resultado == 0) {
            try {
                controlClienteComp = new ControlClienteCompania();
                List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();
                String Rif = tablaCompanias.getValueAt(tablaCompanias.getSelectedRow(), 0).toString();
                int row = tablaCompanias.getSelectedRow();

                for (Iterator iter = companias.iterator(); iter.hasNext();) {
                    ClienteCompania comp = (ClienteCompania) iter.next();

                    if (comp.getRif().equals(Rif)) {

                        if (checkNombreComp.isSelected()) {
                            comp.setNombre(nombreComp2.getText());
                        }

                        if (checkDireccionComp.isSelected()) {
                            comp.setDireccion(direccionComp2.getText());
                        }

                        if (checkTelefonoComp.isSelected()) {
                            comp.setTelefono(telefonoComp2.getText());
                        }

                        boolean result = controlClienteComp.modificarClienteCompania(comp);
                        companias = controlClienteComp.consultarClienteCompania();

                        if (result) {
                            this.cargarTablaCompanias(companias);
                            tablaCompanias.setRowSelectionInterval(row, row);
                            JOptionPane.showMessageDialog(null, "El cliente compania ha sido modificado exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                        } else {
                            JOptionPane.showMessageDialog(null, "Error: El cliente compania no pudo ser modificado", "Resultado", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                }
            } catch (IOException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
}//GEN-LAST:event_ModificarCompaniaActionPerformed

    private void mostrarAtencionPartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarAtencionPartActionPerformed
        try {
            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

            controlCotizacion = new ControlCotizacion();
            List<Cotizacion> cotizaciones = controlCotizacion.consultarCotizaciones();

            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();

            this.cargarTablaAtencionPart(particulares, companias, ejecutivos, cotizaciones, eventos);

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_mostrarAtencionPartActionPerformed

    private void cedulasEjecutivosPartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cedulasEjecutivosPartActionPerformed
}//GEN-LAST:event_cedulasEjecutivosPartActionPerformed

    private void cedulasEjecutivosPartMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cedulasEjecutivosPartMouseEntered
    }//GEN-LAST:event_cedulasEjecutivosPartMouseEntered

    private void tablaAtencionPartMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaAtencionPartMouseClicked
        try {
            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

            String Rif = tablaAtencionPart.getValueAt(tablaAtencionPart.getSelectedRow(), 5).toString();
            String[] cadenaRif = Rif.split(", ");
            String rifCliente = cadenaRif[0];

            String Cedula = tablaAtencionPart.getValueAt(tablaAtencionPart.getSelectedRow(), 6).toString();
            String[] cadenaCedula = Cedula.split(", ");
            String cedClient = cadenaCedula[0];

            if (Rif.equals("--")) {
                Integer cedulaCliente = Integer.parseInt(cedClient);
                for (ClienteParticular part : particulares) {
                    if (part.getCedula().equals(cedulaCliente)) {
                        this.jLabelCedulaAtencion.setText(cedulaCliente.toString());
                        this.jLabelNombreAtencion.setText(part.getNombre() + " " + part.getApellido());
                        this.jTextAreaDireccionAtencion.setText(part.getDireccion());
                        this.jLabelTelefonoAtencion.setText(part.getTelefono());
                    }
                }
            } else if (Cedula.equals("--")) {
                for (ClienteCompania comp : companias) {
                    if (comp.getRif().equals(rifCliente)) {
                        this.jLabelCedulaAtencion.setText(rifCliente);
                        this.jLabelNombreAtencion.setText(comp.getNombre());
                        this.jTextAreaDireccionAtencion.setText(comp.getDireccion());
                        this.jLabelTelefonoAtencion.setText(comp.getTelefono());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_tablaAtencionPartMouseClicked

    private void cedulasEjecutivosCompActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cedulasEjecutivosCompActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_cedulasEjecutivosCompActionPerformed

    private void cedulasEjecutivosCompMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cedulasEjecutivosCompMouseEntered
}//GEN-LAST:event_cedulasEjecutivosCompMouseEntered

    private void mostrarCotizacionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarCotizacionesActionPerformed
        try {
            controlCotizacion = new ControlCotizacion();
            List<Cotizacion> cotizaciones = controlCotizacion.consultarCotizacionesEventos();
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventosCotizaciones();

            this.cargarTablaCotizaciones(cotizaciones, eventos);
            this.cargarIdEventoCot();
            this.redimensionarTabla(tablaCotizaciones);

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_mostrarCotizacionesActionPerformed

    private void eliminarCotizacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eliminarCotizacionActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea realizar esta operacion?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);

        if (resultado == 0) {
            try {
                controlCotizacion = new ControlCotizacion();
                List<Cotizacion> cotizaciones = controlCotizacion.consultarCotizaciones();
                Integer Id = Integer.parseInt(tablaCotizaciones.getValueAt(tablaCotizaciones.getSelectedRow(), 0).toString());

                for (int i = 0; i < cotizaciones.size(); i++) {
                    if (cotizaciones.get(i).getIdCotizacion().equals(Id)) {
                        if (cotizaciones.get(i).getEstatus().equals("R")) {
                            boolean result = controlCotizacion.eliminarCotizacion(cotizaciones.get(i));
                            cotizaciones = controlCotizacion.consultarCotizaciones();
                            controlEvento = new ControlEvento();
                            List<Evento> eventos = controlEvento.consultarEventos();

                            if (result) {
                                this.cargarTablaCotizaciones(cotizaciones, eventos);
                                tablaCotizaciones.setRowSelectionInterval(0, 0);
                                JOptionPane.showMessageDialog(null, "La cotizacion ha sido eliminada exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                            } else {
                                JOptionPane.showMessageDialog(null, "Error: La cotizacion no pudo ser eliminada", "Resultado", JOptionPane.ERROR_MESSAGE);
                            }
                        } else {
                            JOptionPane.showMessageDialog(null, "Error: no puede eliminar una cotizacion aprobada o iniciada", "Resultado", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                }
            } catch (IOException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
}//GEN-LAST:event_eliminarCotizacionActionPerformed

    private void checkEstatusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkEstatusActionPerformed
        if (checkEstatus.isSelected()) {
            estatusCotizacion2.setEnabled(true);
        } else {
            estatusCotizacion2.setEnabled(false);
        }

        try {
            controlCotizacion = new ControlCotizacion();
            List<Cotizacion> cotizaciones = controlCotizacion.consultarCotizaciones();
            Integer Id = Integer.parseInt(tablaCotizaciones.getValueAt(tablaCotizaciones.getSelectedRow(), 0).toString());

            for (Iterator iter = cotizaciones.iterator(); iter.hasNext();) {
                Cotizacion cot = (Cotizacion) iter.next();

                if (cot.getIdCotizacion().equals(Id)) {
                    if (!checkEstatus.isSelected()) {
                        if (cot.getEstatus().equals("I")) {
                            estatusCotizacion2.setSelectedItem("Inicial");
                        }
                        if (cot.getEstatus().equals("A")) {
                            estatusCotizacion2.setSelectedItem("Aprobado");
                        }
                        if (cot.getEstatus().equals("R")) {
                            estatusCotizacion2.setSelectedItem("Rechazado");
                        }
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkEstatusActionPerformed

    private void checkColorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkColorActionPerformed
        if (checkColor.isSelected()) {
            colorCot2.setEnabled(true);
        } else {
            colorCot2.setEnabled(false);
        }

        try {
            controlCotizacion = new ControlCotizacion();
            List<Cotizacion> cotizaciones = controlCotizacion.consultarCotizaciones();
            Integer Id = Integer.parseInt(tablaCotizaciones.getValueAt(tablaCotizaciones.getSelectedRow(), 0).toString());

            for (Iterator iter = cotizaciones.iterator(); iter.hasNext();) {
                Cotizacion cot = (Cotizacion) iter.next();

                if (cot.getIdCotizacion().equals(Id)) {
                    if (!checkColor.isSelected()) {
                        colorCot2.setText(cot.getColor());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkColorActionPerformed

    private void ModificarCotizacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ModificarCotizacionActionPerformed
        int resultado = JOptionPane.showConfirmDialog(null, "Esta seguro que desea realizar esta operacion?", "ATENCION", JOptionPane.OK_CANCEL_OPTION);

        if (resultado == 0) {
            try {
                controlCotizacion = new ControlCotizacion();
                List<Cotizacion> cotizaciones = controlCotizacion.consultarCotizaciones();
                Integer Id = Integer.parseInt(tablaCotizaciones.getValueAt(tablaCotizaciones.getSelectedRow(), 0).toString());
                int row = tablaCotizaciones.getSelectedRow();
                boolean flag = false;
                for (Iterator iter = cotizaciones.iterator(); iter.hasNext();) {
                    Cotizacion cot = (Cotizacion) iter.next();

                    if (cot.getIdCotizacion().equals(Id)) {

                        if (checkEstatus.isSelected()) {
                            if (estatusCotizacion2.getSelectedItem().equals("Inicial")) {
                                cot.setEstatus("I");
                            }
                            if (estatusCotizacion2.getSelectedItem().equals("Aprobado")) {
                                cot.setEstatus("A");
                                flag = true;
                            }
                            if (estatusCotizacion2.getSelectedItem().equals("Rechazado")) {
                                cot.setEstatus("R");
                            }
                        }

                        if (checkColor.isSelected()) {
                            cot.setColor(colorCot2.getText());
                        }

                        boolean result = controlCotizacion.modificarCotizacion(cot);
                        cotizaciones = controlCotizacion.consultarCotizaciones();
                        controlEvento = new ControlEvento();
                        List<Evento> eventos = controlEvento.consultarEventos();

                        if (result) {
                            this.cargarTablaCotizaciones(cotizaciones, eventos);
                            tablaCotizaciones.setRowSelectionInterval(row, row);
                            JOptionPane.showMessageDialog(null, "La cotizacion ha sido modificada exitosamente", "Resultado", JOptionPane.INFORMATION_MESSAGE);
                            if(flag){
                                cancelacionEvento ce = new cancelacionEvento();
                                ce.setVisible(true);
                            }
                        } else {
                            JOptionPane.showMessageDialog(null, "Error: La cotizacion no pudo ser modificada", "Resultado", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                }
            } catch (IOException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            } catch (SQLException ex) {
                Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
}//GEN-LAST:event_ModificarCotizacionActionPerformed

    private void estatusCotizacion2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estatusCotizacion2ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_estatusCotizacion2ActionPerformed

    private void estatusCotizacion2MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_estatusCotizacion2MouseEntered
        // TODO add your handling code here:
}//GEN-LAST:event_estatusCotizacion2MouseEntered

    private void acercaDeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_acercaDeActionPerformed
        About ab = new About();
        ab.setVisible(true);
    }//GEN-LAST:event_acercaDeActionPerformed

    private void tablaParticularesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaParticularesMouseClicked
        try {
            checkNombrePart.setEnabled(true);
            checkApellidoPart.setEnabled(true);
            checkDireccionPart.setEnabled(true);
            checkTelefonoPart.setEnabled(true);

            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

            Integer cedulaCliente = Integer.parseInt(tablaParticulares.getValueAt(tablaParticulares.getSelectedRow(), 0).toString());

            for (int i = 0; i < particulares.size(); i++) {

                if (particulares.get(i).getCedula().equals(cedulaCliente)) {
                    cedulaPart2.setText(particulares.get(i).getCedula().toString());
                    nombrePart2.setText(particulares.get(i).getNombre());
                    apellidoPart2.setText(particulares.get(i).getApellido());
                    direccionPart2.setText(particulares.get(i).getDireccion());
                    telefonoPart2.setText(particulares.get(i).getTelefono());
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_tablaParticularesMouseClicked

    private void tablaCompaniasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaCompaniasMouseClicked
        try {
            checkNombreComp.setEnabled(true);
            checkTelefonoComp.setEnabled(true);
            checkDireccionComp.setEnabled(true);

            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

            String Rif = tablaCompanias.getValueAt(tablaCompanias.getSelectedRow(), 0).toString();

            for (int i = 0; i < companias.size(); i++) {
                if (companias.get(i).getRif().equals(Rif)) {
                    rifComp2.setText(companias.get(i).getRif());
                    nombreComp2.setText(companias.get(i).getNombre());
                    direccionComp2.setText(companias.get(i).getDireccion());
                    telefonoComp2.setText(companias.get(i).getTelefono());
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_tablaCompaniasMouseClicked

    private void tablaEjecutivosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaEjecutivosMouseClicked
        try {
            checkNombre.setEnabled(true);
            checkApellido.setEnabled(true);
            checkTelefono.setEnabled(true);
            checkSalario.setEnabled(true);
            checkEstatusEjecutivo.setEnabled(true);

            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

            Integer Cedula = Integer.parseInt(tablaEjecutivos.getValueAt(tablaEjecutivos.getSelectedRow(), 0).toString());

            for (int i = 0; i < ejecutivos.size(); i++) {

                if (ejecutivos.get(i).getCedula().equals(Cedula)) {
                    cedulaEjecutivo.setText(ejecutivos.get(i).getCedula().toString());
                    nombreEjecutivo.setText(ejecutivos.get(i).getNombre());
                    apellidoEjecutivo.setText(ejecutivos.get(i).getApellido());
                    telefonoEjecutivo.setText(ejecutivos.get(i).getTelefono());
                    salarioEjecutivo.setText(Double.toString(ejecutivos.get(i).getSalarioEjecutivo()));
                    if(jComboBoxEstatusEjecutivo.getItemCount()>0){
                        jComboBoxEstatusEjecutivo.removeAllItems();
                        jComboBoxEstatusEjecutivo.addItem(ejecutivos.get(i).isHabilitado());
                        jComboBoxEstatusEjecutivo.setSelectedItem(ejecutivos.get(i).isHabilitado());
                    }else{
                        jComboBoxEstatusEjecutivo.addItem(ejecutivos.get(i).isHabilitado());
                        jComboBoxEstatusEjecutivo.setSelectedItem(ejecutivos.get(i).isHabilitado());
                    }

                    cedulaEjecutivo2.setText(ejecutivos.get(i).getCedula().toString());
                    nombre2.setText(ejecutivos.get(i).getNombre());
                    apellido2.setText(ejecutivos.get(i).getApellido());
                    telefono2.setText(ejecutivos.get(i).getTelefono());
                    salario2.setText(Double.toString(ejecutivos.get(i).getSalarioEjecutivo()));
                }
            }


        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_tablaEjecutivosMouseClicked

    private void tablaContratadosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaContratadosMouseClicked
        try {
            checkNombreC.setEnabled(true);
            checkApellidoC.setEnabled(true);
            checkTelefonoC.setEnabled(true);
            checkCargo.setEnabled(true);
            checkCosto.setEnabled(true);
            checkEstatusContratado.setEnabled(true);

            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();

            Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());

            for (int i = 0; i < contratados.size(); i++) {

                if (contratados.get(i).getCedula().equals(Cedula)) {
                    cedulaContratado.setText(contratados.get(i).getCedula().toString());
                    nombreContratado.setText(contratados.get(i).getNombre());
                    apellidoContratado.setText(contratados.get(i).getApellido());
                    telefonoContratado.setText(contratados.get(i).getTelefono());
                    cargoContratado.setText(contratados.get(i).getCargoContratado());
                    costoContratado.setText(Double.toString(contratados.get(i).getCostoHoraContratado()));
                    if(jComboBoxEstatusContratado.getItemCount()>0){
                        jComboBoxEstatusContratado.removeAllItems();
                        jComboBoxEstatusContratado.addItem(contratados.get(i).isHabilitado());
                        jComboBoxEstatusContratado.setSelectedItem(contratados.get(i).isHabilitado());
                    }else{
                        jComboBoxEstatusContratado.addItem(contratados.get(i).isHabilitado());
                        jComboBoxEstatusContratado.setSelectedItem(contratados.get(i).isHabilitado());
                    }

                    cedulaC2.setText(contratados.get(i).getCedula().toString());
                    nombreC2.setText(contratados.get(i).getNombre());
                    apellidoC2.setText(contratados.get(i).getApellido());
                    telefonoC2.setText(contratados.get(i).getTelefono());
                    cargo2.setText(contratados.get(i).getCargoContratado());
                    costo2.setText(Double.toString(contratados.get(i).getCostoHoraContratado()));
                }
            }


        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_tablaContratadosMouseClicked

    private void tablaEventosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaEventosMouseClicked
        try {
            this.checkFechaE.setEnabled(true);
            this.checkDescripcionE.setEnabled(true);
            this.checkHoraInicioE.setEnabled(true);
            this.checkHoraFinE.setEnabled(true);
            this.checkCedulaE.setEnabled(true);
            this.jCheckBoxLugar.setEnabled(true);
            //this.jTextAreaLugar.setEnabled(true);

            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();

            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

            Integer Id = Integer.parseInt(tablaEventos.getValueAt(tablaEventos.getSelectedRow(), 0).toString());

            for (int i = 0; i < eventos.size(); i++) {

                if (eventos.get(i).getIdEvento().equals(Id)) {

                    this.idLabel2.setText(eventos.get(i).getIdEvento().toString());
                    this.fechaEvento2.setDate(eventos.get(i).getFecha());
                    this.descripcion2.setText(eventos.get(i).getDescripcion());
                    this.jTextAreaLugar.setText(eventos.get(i).getLugar());
                    this.horaInicio2.setText(eventos.get(i).getHoraInicio().toString());
                    this.horaFin2.setText(eventos.get(i).getHoraFin().toString());

                    for (int j = 0; j < ejecutivos.size(); j++) {
                        if (eventos.get(i).getEjecutivoCedula().equals(ejecutivos.get(j).getCedula())) {
                            String Nombre = ejecutivos.get(j).getNombre() + " " + ejecutivos.get(j).getApellido();
                            this.cedulaEjec2.setSelectedItem(eventos.get(i).getEjecutivoCedula() + ", " + Nombre);
                        }
                    }
                }
            }


        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_tablaEventosMouseClicked

    private void tablaCotizacionesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaCotizacionesMouseClicked
        try {
            checkEstatus.setEnabled(true);
            checkColor.setEnabled(true);

            controlCotizacion = new ControlCotizacion();
            List<Cotizacion> cotizaciones = controlCotizacion.consultarCotizaciones();

            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

            Integer Id = Integer.parseInt(tablaCotizaciones.getValueAt(tablaCotizaciones.getSelectedRow(), 0).toString());
            String estatus = tablaCotizaciones.getValueAt(tablaCotizaciones.getSelectedRow(), 1).toString();

            for (int i = 0; i < cotizaciones.size(); i++) {

                if (cotizaciones.get(i).getIdCotizacion().equals(Id)) {
                    idCotLabel.setText(cotizaciones.get(i).getIdCotizacion().toString());

                    if (cotizaciones.get(i).getEstatus().equals("I")) {
                        estatusCotLabel.setText("Inicial");
                    }
                    if (cotizaciones.get(i).getEstatus().equals("A")) {
                        estatusCotLabel.setText("Aprobado");
                    }
                    if (cotizaciones.get(i).getEstatus().equals("R")) {
                        estatusCotLabel.setText("Rechazado");
                    }
                    fechaCotLabel.setText(cotizaciones.get(i).getFecha().toString());
                    colorCotLabel.setText(cotizaciones.get(i).getColor());

                    if (cotizaciones.get(i).getClienteCompaniaRif().equals("")) {
                        rifCompCotLabel.setText("--");
                    } else {
                        for (int j = 0; j < companias.size(); j++) {
                            if (companias.get(j).getRif().equals(cotizaciones.get(i).getClienteCompaniaRif())) {
                                rifCompCotLabel.setText(cotizaciones.get(i).getClienteCompaniaRif() + ", " + companias.get(j).getNombre());
                            }
                        }
                    }

                    if (cotizaciones.get(i).getClienteParticularCedula().equals(0)) {
                        cedPartCotLabel.setText("--");
                    } else {
                        for (int k = 0; k < particulares.size(); k++) {
                            if (particulares.get(k).getCedula().equals(cotizaciones.get(i).getClienteParticularCedula())) {
                                cedPartCotLabel.setText(cotizaciones.get(i).getClienteParticularCedula().toString() + ", " + particulares.get(k).getNombre() + " " + particulares.get(k).getApellido());
                            }
                        }
                    }

                    fechaCotLabel.setText(cotizaciones.get(i).getFecha().toString());
                    colorCotLabel.setText(cotizaciones.get(i).getColor());
                    idEventoCotLabel.setText(cotizaciones.get(i).getEventoIdEvento().toString());


                    idCot2.setText(cotizaciones.get(i).getIdCotizacion().toString());
                    if (cotizaciones.get(i).getEstatus().equals("I")) {
                        if (estatusCotizacion2.getItemCount() > 0) {
                            estatusCotizacion2.removeAllItems();
                            estatusCotizacion2.addItem("Inicial");
                            estatusCotizacion2.addItem("Aprobado");
                            estatusCotizacion2.addItem("Rechazado");
                            estatusCotizacion2.setSelectedItem("Inicial");
                            checkEstatus.setEnabled(true);
                        } else {
                            estatusCotizacion2.addItem("Inicial");
                            estatusCotizacion2.addItem("Aprobado");
                            estatusCotizacion2.setSelectedItem("Inicial");
                            checkEstatus.setEnabled(true);
                        }
                    }
                    if (cotizaciones.get(i).getEstatus().equals("A")) {
                        if (estatusCotizacion2.getItemCount() > 0) {
                            estatusCotizacion2.removeAllItems();
                            estatusCotizacion2.addItem("Aprobado");
                            estatusCotizacion2.setSelectedItem("Aprobado");
                            checkEstatus.setEnabled(false);
                        } else {
                            estatusCotizacion2.addItem("Aprobado");
                            estatusCotizacion2.setSelectedItem("Aprobado");
                            checkEstatus.setEnabled(false);
                        }
                    }
                    if (cotizaciones.get(i).getEstatus().equals("R")) {
                        if (estatusCotizacion2.getItemCount() > 0) {
                            estatusCotizacion2.removeAllItems();
                            estatusCotizacion2.addItem("Rechazado");
                            estatusCotizacion2.setSelectedItem("Rechazado");
                            checkEstatus.setEnabled(false);
                        } else {
                            estatusCotizacion2.addItem("Rechazado");
                            estatusCotizacion2.setSelectedItem("Rechazado");
                            checkEstatus.setEnabled(false);
                        }
                    }
                    colorCot2.setText(cotizaciones.get(i).getColor());
                }
            }

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_tablaCotizacionesMouseClicked

    private void cedulaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cedulaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cedulaActionPerformed

    private void cedulaKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_cedulaKeyReleased
        if (!cedula.getText().equals("")) {
            this.verificarEjecutivo();
        }
    }//GEN-LAST:event_cedulaKeyReleased

    private void cedulaCKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_cedulaCKeyReleased
        if (!cedulaC.getText().equals("")) {
            this.verificarContratado();
        }
    }//GEN-LAST:event_cedulaCKeyReleased

    private void tablaCronogramaEventosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaCronogramaEventosMouseClicked
        try {
            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

            String[] cadenaRif = tablaCronogramaEventos.getValueAt(tablaCronogramaEventos.getSelectedRow(), 7).toString().split(", ");
            String rifCliente = cadenaRif[0];
            String[] cadenaCedula = tablaCronogramaEventos.getValueAt(tablaCronogramaEventos.getSelectedRow(), 8).toString().split(", ");
            String cedClient = cadenaCedula[0];


            if (rifCliente.equals("--")) {
                Integer cedulaCliente = Integer.parseInt(cedClient);
                for (ClienteParticular part : particulares) {
                    if (part.getCedula().equals(cedulaCliente)) {
                        this.jLabelCedulaCliente.setText(cedulaCliente.toString());
                        this.jLabelNombreCliente.setText(part.getNombre() + " " + part.getApellido());
                        this.jTextAreaDireccionCliente.setText(part.getDireccion());
                        this.jLabelTelefonoCliente.setText(part.getTelefono());
                    }
                }
            } else if (cedClient.equals("--")) {
                for (ClienteCompania comp : companias) {
                    if (comp.getRif().equals(rifCliente)) {
                        this.jLabelCedulaCliente.setText(rifCliente);
                        this.jLabelNombreCliente.setText(comp.getNombre());
                        this.jTextAreaDireccionCliente.setText(comp.getDireccion());
                        this.jLabelTelefonoCliente.setText(comp.getTelefono());
                    }
                }
            }


        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_tablaCronogramaEventosMouseClicked

    private void mostrarContratados3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarContratados3ActionPerformed
        try {
            controlCotizacion = new ControlCotizacion();
            List<Cotizacion> cotizaciones = controlCotizacion.consultarCotizacionesEventos();
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventosCotizaciones();

            if(!jCheckBoxEvento.isSelected()){
                this.cargarTablaCronogramaEventosPorMes(cotizaciones, eventos);
            }else{
               this.cargarTablaCronogramaEventosPorMesEjecutivo(cotizaciones, eventos);
            }

        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_mostrarContratados3ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        this.cargarServicioParticular();
        this.cargarServicioCompania();
    }//GEN-LAST:event_jButton1ActionPerformed

    private void cargarServicioParticular() {
        try {
            Integer year = this.jYearChooserServicios.getYear();

            controlClientePart = new ControlClienteParticular();
            List<ClienteParticular> particulares = controlClientePart.consultarClientesEventosAnuales(year);

            DefaultTableModel dm = new DefaultTableModel();

            dm.addColumn("Cedula");
            dm.addColumn("Nombre");
            dm.addColumn("Apellido");
            dm.addColumn("Direccion");
            dm.addColumn("Telefono");

            for (ClienteParticular clienteParticular : particulares) {
                Vector tabla = new Vector();
                tabla.addElement(clienteParticular.getCedula());
                tabla.addElement(clienteParticular.getNombre());
                tabla.addElement(clienteParticular.getApellido());
                tabla.addElement(clienteParticular.getDireccion());
                tabla.addElement(clienteParticular.getTelefono());

                dm.addRow(tabla);
            }

            this.tablaClientesPartServicios.setModel(dm);
            
            if(this.tablaClientesPartServicios.getRowCount()==0){
                JOptionPane.showMessageDialog(null, "Ningun cliente particular contrato nuestros servicios mas de dos veces \n" +
                        "en el año: "+year, "Aviso", JOptionPane.INFORMATION_MESSAGE);
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void cargarServicioCompania() {
        try {
            Integer year = this.jYearChooserServicios.getYear();

            controlClienteComp = new ControlClienteCompania();
            List<ClienteCompania> companias = controlClienteComp.consultarClientesCompEventosAnuales(year);

            DefaultTableModel dm = new DefaultTableModel();

            dm.addColumn("Rif");
            dm.addColumn("Nombre");
            dm.addColumn("Direccion");
            dm.addColumn("Telefono");

            for (ClienteCompania clienteCompania : companias) {
                Vector tabla = new Vector();
                tabla.addElement(clienteCompania.getRif());
                tabla.addElement(clienteCompania.getNombre());
                tabla.addElement(clienteCompania.getDireccion());
                tabla.addElement(clienteCompania.getTelefono());

                dm.addRow(tabla);
            }
            this.tablaClientesCompServicios.setModel(dm);

            if(this.tablaClientesCompServicios.getRowCount()==0){
                JOptionPane.showMessageDialog(null, "Ningun cliente compania contrato nuestros servicios mas de dos veces \n" +
                        "en el anio: "+year, "Aviso", JOptionPane.INFORMATION_MESSAGE);
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void tablaClientesPartServiciosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaClientesPartServiciosMouseClicked
        // TODO add your handling code here:
}//GEN-LAST:event_tablaClientesPartServiciosMouseClicked

    private void tablaClientesCompServiciosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaClientesCompServiciosMouseClicked
        // TODO add your handling code here:
}//GEN-LAST:event_tablaClientesCompServiciosMouseClicked

    private void jCheckBoxEventoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxEventoActionPerformed
        if(jCheckBoxEvento.isSelected()){
            jComboBoxEjecutivos.setEnabled(true);
            this.cargarCedulasEjecutivosEventos();
        } else{
            jComboBoxEjecutivos.setEnabled(false);
            if(jComboBoxEjecutivos.getItemCount()>0){
                jComboBoxEjecutivos.removeAllItems();
            }
        }
}//GEN-LAST:event_jCheckBoxEventoActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        cancelacionEvento ce = new cancelacionEvento();
        ce.setVisible(true);
}//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jCheckBoxLugarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxLugarActionPerformed
        if (jCheckBoxLugar.isSelected()) {
            jTextAreaLugar.setEnabled(true);
        } else {
            jTextAreaLugar.setEnabled(false);
        }

        try {
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();
            Integer Id = Integer.parseInt(tablaEventos.getValueAt(tablaEventos.getSelectedRow(), 0).toString());

            for (Iterator iter = eventos.iterator(); iter.hasNext();) {
                Evento eve = (Evento) iter.next();

                if (eve.getIdEvento().equals(Id)) {
                    if (!jCheckBoxLugar.isSelected()) {
                        jTextAreaLugar.setText(eve.getLugar());
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jCheckBoxLugarActionPerformed

    private void checkEstatusEjecutivoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkEstatusEjecutivoActionPerformed
        if (checkEstatusEjecutivo.isSelected()) {
            jComboBoxEstatusEjecutivo.setEnabled(true);
        } else {
            jComboBoxEstatusEjecutivo.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            Integer Cedula = Integer.parseInt(tablaEjecutivos.getValueAt(tablaEjecutivos.getSelectedRow(), 0).toString());

            for (Iterator iter = ejecutivos.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkEstatusEjecutivo.isSelected()) {
                        if(jComboBoxEstatusEjecutivo.getItemCount()>0){
                            jComboBoxEstatusEjecutivo.removeAllItems();
                            jComboBoxEstatusEjecutivo.addItem(emp.isHabilitado());
                            jComboBoxEstatusEjecutivo.setSelectedItem(emp.isHabilitado());
                        }else{
                            jComboBoxEstatusEjecutivo.addItem(emp.isHabilitado());
                            jComboBoxEstatusEjecutivo.setSelectedItem(emp.isHabilitado());
                        }
                    }else{
                        if(jComboBoxEstatusEjecutivo.getItemCount()>0){
                            jComboBoxEstatusEjecutivo.removeAllItems();
                            if(emp.isHabilitado().equals("s")){
                                jComboBoxEstatusEjecutivo.addItem("n");
                                jComboBoxEstatusEjecutivo.setSelectedItem("n");
                            }else{
                                jComboBoxEstatusEjecutivo.addItem("s");
                                jComboBoxEstatusEjecutivo.setSelectedItem("s");
                            }
                        }else{
                            if(emp.isHabilitado().equals("s")){
                                jComboBoxEstatusEjecutivo.addItem("n");
                                jComboBoxEstatusEjecutivo.setSelectedItem("n");
                            }else{
                                jComboBoxEstatusEjecutivo.addItem("s");
                                jComboBoxEstatusEjecutivo.setSelectedItem("s");
                            }
                        }
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkEstatusEjecutivoActionPerformed

    private void checkEstatusContratadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkEstatusContratadoActionPerformed
        if (checkEstatusContratado.isSelected()) {
            jComboBoxEstatusContratado.setEnabled(true);
        } else {
            jComboBoxEstatusContratado.setEnabled(false);
        }

        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();
            Integer Cedula = Integer.parseInt(tablaContratados.getValueAt(tablaContratados.getSelectedRow(), 0).toString());

            for (Iterator iter = contratados.iterator(); iter.hasNext();) {
                Empleado emp = (Empleado) iter.next();

                if (emp.getCedula().equals(Cedula)) {
                    if (!checkEstatusContratado.isSelected()) {
                        if(jComboBoxEstatusContratado.getItemCount()>0){
                            jComboBoxEstatusContratado.removeAllItems();
                            jComboBoxEstatusContratado.addItem(emp.isHabilitado());
                            jComboBoxEstatusContratado.setSelectedItem(emp.isHabilitado());
                        }else{
                            jComboBoxEstatusContratado.addItem(emp.isHabilitado());
                            jComboBoxEstatusContratado.setSelectedItem(emp.isHabilitado());
                        }
                    }else{
                        if(jComboBoxEstatusContratado.getItemCount()>0){
                            jComboBoxEstatusContratado.removeAllItems();
                            if(emp.isHabilitado().equals("s")){
                                jComboBoxEstatusContratado.addItem("n");
                                jComboBoxEstatusContratado.setSelectedItem("n");
                            }else{
                                jComboBoxEstatusContratado.addItem("s");
                                jComboBoxEstatusContratado.setSelectedItem("s");
                            }
                        }else{
                            if(emp.isHabilitado().equals("s")){
                                jComboBoxEstatusContratado.addItem("n");
                                jComboBoxEstatusContratado.setSelectedItem("n");
                            }else{
                                jComboBoxEstatusContratado.addItem("s");
                                jComboBoxEstatusContratado.setSelectedItem("s");
                            }
                        }
                    }
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_checkEstatusContratadoActionPerformed

    private void verificarEjecutivo() {
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

            ejecutivo:
            for (Empleado e : ejecutivos) {
                if (e.getCedula().equals(Integer.parseInt(cedula.getText().toString()))) {
                    nombre.setText(e.getNombre());
                    apellido.setText(e.getApellido());
                    telefono.setText(e.getTelefono());
                    salario.setText(Double.toString(e.getSalarioEjecutivo()));
                    break ejecutivo;
                } else {
                    nombre.setText("");
                    apellido.setText("");
                    telefono.setText("");
                    salario.setText("");
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(NuevaCotizacion.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(NuevaCotizacion.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void verificarContratado() {
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> contratados = controlEmpleado.consultarContratados();

            contratado:
            for (Empleado e : contratados) {
                if (e.getCedula().equals(Integer.parseInt(cedulaC.getText().toString()))) {
                    nombreC.setText(e.getNombre());
                    apellidoC.setText(e.getApellido());
                    telefonoC.setText(e.getTelefono());
                    cargo.setText(e.getCargoContratado());
                    costo.setText(Double.toString(e.getCostoHoraContratado()));
                    break contratado;
                } else {
                    nombreC.setText("");
                    apellidoC.setText("");
                    telefonoC.setText("");
                    cargo.setText("");
                    costo.setText("");
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(NuevaCotizacion.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(NuevaCotizacion.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void cargarTablaEjecutivos(List<Empleado> ejecutivos) {

        DefaultTableModel dm = new DefaultTableModel();

        dm.addColumn("Cedula");
        dm.addColumn("Nombre");
        dm.addColumn("Apellido");
        dm.addColumn("Telefono");
        dm.addColumn("Salario");
        dm.addColumn("Habilitado");

        for (int i = 0; i < ejecutivos.size(); i++) {
            Vector eje = new Vector();
            eje.addElement(ejecutivos.get(i).getCedula());
            eje.addElement(ejecutivos.get(i).getNombre());
            eje.addElement(ejecutivos.get(i).getApellido());
            eje.addElement(ejecutivos.get(i).getTelefono());
            eje.addElement(ejecutivos.get(i).getSalarioEjecutivo());
            if (ejecutivos.get(i).isHabilitado().equals("s")) {
                eje.addElement("Si");
            } else if (ejecutivos.get(i).isHabilitado().equals("n")) {
                eje.addElement("No");
            }

            dm.addRow(eje);
        }
        tablaEjecutivos.setModel(dm);
    }

    private void cargarTablaContratados(List<Empleado> contratados) {

        DefaultTableModel dm = new DefaultTableModel();

        dm.addColumn("Cedula");
        dm.addColumn("Nombre");
        dm.addColumn("Apellido");
        dm.addColumn("Telefono");
        dm.addColumn("Cargo");
        dm.addColumn("Costo Hora");
        dm.addColumn("Habilitado");

        for (int i = 0; i < contratados.size(); i++) {
            Vector cont = new Vector();
            cont.addElement(contratados.get(i).getCedula());
            cont.addElement(contratados.get(i).getNombre());
            cont.addElement(contratados.get(i).getApellido());
            cont.addElement(contratados.get(i).getTelefono());
            cont.addElement(contratados.get(i).getCargoContratado());
            cont.addElement(contratados.get(i).getCostoHoraContratado());
            if (contratados.get(i).isHabilitado().equals("s")) {
                cont.addElement("Si");
            } else if (contratados.get(i).isHabilitado().equals("n")) {
                cont.addElement("No");
            }

            dm.addRow(cont);
        }
        tablaContratados.setModel(dm);
    }

    private void cargarTablaEventos(List<Evento> eventos, List<Empleado> ejecutivos) {

        DefaultTableModel dm = new DefaultTableModel();

        dm.addColumn("Id");
        dm.addColumn("Fecha");
        dm.addColumn("Descripcion");
        dm.addColumn("Lugar Evento");
        dm.addColumn("Hora Inicio");
        dm.addColumn("Hora Fin");
        dm.addColumn("Ejecutivo");

        for (int i = 0; i < eventos.size(); i++) {
            Vector even = new Vector();
            even.addElement(eventos.get(i).getIdEvento());
            even.addElement(eventos.get(i).getFecha());
            even.addElement(eventos.get(i).getDescripcion());
            even.addElement(eventos.get(i).getLugar());
            even.addElement(eventos.get(i).getHoraInicio());
            even.addElement(eventos.get(i).getHoraFin());

            for (int j = 0; j < ejecutivos.size(); j++) {
                if (ejecutivos.get(j).getCedula().equals(eventos.get(i).getEjecutivoCedula())) {
                    even.addElement(eventos.get(i).getEjecutivoCedula() + ", " + ejecutivos.get(j).getNombre() + " " + ejecutivos.get(j).getApellido());
                }
            }
            dm.addRow(even);
        }
        tablaEventos.setModel(dm);
    }

    private void cargarTablaCronogramaEventosPorMes(List<Cotizacion> cotizaciones, List<Evento> eventos) throws IOException, IOException, SQLException, SQLException {
        controlClienteComp = new ControlClienteCompania();
        List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

        controlClientePart = new ControlClienteParticular();
        List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

        controlEmpleado = new ControlEmpleado();
        List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

        Integer mes = this.jMonthChooserEvento.getMonth() + 1;
        String month = "";
        if (mes < 10) {
            month = "0" + mes.toString();
        } else {
            month = mes.toString();
        }
        Integer anio = this.jYearChooserEvento.getYear();
        String year = anio.toString();

        DefaultTableModel dm = new DefaultTableModel();

        dm.addColumn("Estatus");
        dm.addColumn("Color");

        dm.addColumn("EVENTO");
        dm.addColumn("Fecha Evento");
        dm.addColumn("Hora Inicio");
        dm.addColumn("Hora Fin");
        dm.addColumn("Ejecutivo");

        dm.addColumn("Cliente Compania");
        dm.addColumn("Cliente Particular");

        boolean flag = false;

        for (int j = 0; j < eventos.size(); j++) {
            for (int i = 0; i < cotizaciones.size(); i++) {
                if (eventos.get(j).getIdEvento().equals(cotizaciones.get(i).getEventoIdEvento())) {
                    if (cotizaciones.get(i).getEstatus().equals("A")) {
                        String[] valor = eventos.get(j).getFecha().toString().split("-");
                        String mesEvento = valor[1];
                        String anoEvento = valor[0];
                        if (mesEvento.equals(month) && anoEvento.equals(year)) {
                            flag = true;
                            Vector cot = new Vector();
                            cot.addElement(cotizaciones.get(i).getEstatus());
                            cot.addElement(cotizaciones.get(i).getColor());
                            cot.addElement(cotizaciones.get(i).getEventoIdEvento() + ", " + eventos.get(j).getDescripcion());
                            cot.addElement(eventos.get(j).getFecha());
                            cot.addElement(eventos.get(j).getHoraInicio());
                            cot.addElement(eventos.get(j).getHoraFin());
                            for (Empleado ejecutivo : ejecutivos) {
                                if (ejecutivo.getCedula().equals(eventos.get(j).getEjecutivoCedula())) {
                                    cot.addElement(ejecutivo.getCedula() + ", " + ejecutivo.getNombre() + " " + ejecutivo.getApellido());
                                }
                            }


                            if (cotizaciones.get(i).getClienteCompaniaRif().equals("")) {
                                cot.addElement("--");
                            } else {
                                for (int k = 0; k < companias.size(); k++) {
                                    if (companias.get(k).getRif().equals(cotizaciones.get(i).getClienteCompaniaRif())) {
                                        cot.addElement(cotizaciones.get(i).getClienteCompaniaRif() + ", " + companias.get(k).getNombre());
                                    }
                                }
                            }
                            if (cotizaciones.get(i).getClienteParticularCedula().equals(0)) {
                                cot.addElement("--");
                            } else {
                                for (int k = 0; k < particulares.size(); k++) {
                                    if (particulares.get(k).getCedula().equals(cotizaciones.get(i).getClienteParticularCedula())) {
                                        cot.addElement(cotizaciones.get(i).getClienteParticularCedula() + ", " + particulares.get(k).getNombre() + " " + particulares.get(k).getApellido());
                                    }
                                }
                            }

                            dm.addRow(cot);
                        }
                    }
                }
            }

        }
        if(!flag){
            JOptionPane.showMessageDialog(null, "No existen eventos registrados en esa fecha.", "Aviso", JOptionPane.INFORMATION_MESSAGE);
            this.jLabelCedulaCliente.setText("Cedula/Rif Cliente");
            this.jLabelNombreCliente.setText("Nombre y Apellido Cliente");
            this.jLabelTelefonoCliente.setText("Telefono Cliente");
            this.jTextAreaDireccionCliente.setText("");            
        }
        tablaCronogramaEventos.setModel(dm);
    }

    private void cargarTablaCronogramaEventosPorMesEjecutivo(List<Cotizacion> cotizaciones, List<Evento> eventos) throws IOException, IOException, SQLException, SQLException {
        controlClienteComp = new ControlClienteCompania();
        List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

        controlClientePart = new ControlClienteParticular();
        List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

        controlEmpleado = new ControlEmpleado();
        List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

        Integer mes = this.jMonthChooserEvento.getMonth() + 1;
        String month = "";
        if (mes < 10) {
            month = "0" + mes.toString();
        } else {
            month = mes.toString();
        }
        Integer anio = this.jYearChooserEvento.getYear();
        String year = anio.toString();

        String[] arreglo = jComboBoxEjecutivos.getSelectedItem().toString().split(", ");
        Integer cedulaEj = Integer.parseInt(arreglo[0]);

        DefaultTableModel dm = new DefaultTableModel();

        dm.addColumn("Estatus");
        dm.addColumn("Color");

        dm.addColumn("EVENTO");
        dm.addColumn("Fecha Evento");
        dm.addColumn("Hora Inicio");
        dm.addColumn("Hora Fin");
        dm.addColumn("Ejecutivo");

        dm.addColumn("Cliente Compania");
        dm.addColumn("Cliente Particular");

        boolean flag = false;

        for (int j = 0; j < eventos.size(); j++) {
            for (int i = 0; i < cotizaciones.size(); i++) {
                if (eventos.get(j).getIdEvento().equals(cotizaciones.get(i).getEventoIdEvento())) {
                    if (cotizaciones.get(i).getEstatus().equals("A")) {
                        String[] valor = eventos.get(j).getFecha().toString().split("-");
                        String mesEvento = valor[1];
                        String anoEvento = valor[0];
                        if (mesEvento.equals(month) && anoEvento.equals(year)) {
                            flag = true;
                            Vector cot = new Vector();
                            for (Empleado ejecutivo : ejecutivos) {
                                if (ejecutivo.getCedula().equals(eventos.get(j).getEjecutivoCedula())) {
                                    if(ejecutivo.getCedula().equals(cedulaEj)){
                                        cot.addElement(cotizaciones.get(i).getEstatus());
                                        cot.addElement(cotizaciones.get(i).getColor());
                                        cot.addElement(cotizaciones.get(i).getEventoIdEvento() + ", " + eventos.get(j).getDescripcion());
                                        cot.addElement(eventos.get(j).getFecha());
                                        cot.addElement(eventos.get(j).getHoraInicio());
                                        cot.addElement(eventos.get(j).getHoraFin());

                                        cot.addElement(ejecutivo.getCedula() + ", " + ejecutivo.getNombre() + " " + ejecutivo.getApellido());
                                        if (cotizaciones.get(i).getClienteCompaniaRif().equals("")) {
                                            cot.addElement("--");
                                        } else {
                                            for (int k = 0; k < companias.size(); k++) {
                                                if (companias.get(k).getRif().equals(cotizaciones.get(i).getClienteCompaniaRif())) {
                                                    cot.addElement(cotizaciones.get(i).getClienteCompaniaRif() + ", " + companias.get(k).getNombre());
                                                }
                                            }
                                        }
                                        if (cotizaciones.get(i).getClienteParticularCedula().equals(0)) {
                                            cot.addElement("--");
                                        } else {
                                            for (int k = 0; k < particulares.size(); k++) {
                                                if (particulares.get(k).getCedula().equals(cotizaciones.get(i).getClienteParticularCedula())) {
                                                    cot.addElement(cotizaciones.get(i).getClienteParticularCedula() + ", " + particulares.get(k).getNombre() + " " + particulares.get(k).getApellido());
                                                }
                                            }
                                        }
                                    }
                                }
                            }

                            dm.addRow(cot);

                        }
                    }
                }
            }

        }
        if(!flag){
            JOptionPane.showMessageDialog(null, "No existen eventos registrados en esa fecha.", "Aviso", JOptionPane.INFORMATION_MESSAGE);
            this.jLabelCedulaCliente.setText("Cedula/Rif Cliente");
            this.jLabelNombreCliente.setText("Nombre y Apellido Cliente");
            this.jLabelTelefonoCliente.setText("Telefono Cliente");
            this.jTextAreaDireccionCliente.setText("");
        }
        tablaCronogramaEventos.setModel(dm);
    }

    private void cargarTablaCotizaciones(List<Cotizacion> cotizaciones, List<Evento> eventos) throws IOException, IOException, SQLException, SQLException {
        controlClienteComp = new ControlClienteCompania();
        List<ClienteCompania> companias = controlClienteComp.consultarClienteCompania();

        controlClientePart = new ControlClienteParticular();
        List<ClienteParticular> particulares = controlClientePart.consultarClienteParticular();

        controlEmpleado = new ControlEmpleado();
        List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();

        DefaultTableModel dm = new DefaultTableModel();

        dm.addColumn("ID");
        dm.addColumn("Estatus");
        dm.addColumn("Fecha Cotizacion");
        dm.addColumn("Color");
        dm.addColumn("Monto Total");

        dm.addColumn("EVENTO");
        dm.addColumn("Fecha Evento");
        dm.addColumn("Hora Inicio");
        dm.addColumn("Hora Fin");
        dm.addColumn("Ejecutivo");

        dm.addColumn("Cliente Compania");
        dm.addColumn("Cliente Particular");

        for (int i = 0; i < cotizaciones.size(); i++) {
            Vector cot = new Vector();
            cot.addElement(cotizaciones.get(i).getIdCotizacion());
            cot.addElement(cotizaciones.get(i).getEstatus());
            cot.addElement(cotizaciones.get(i).getFecha());
            cot.addElement(cotizaciones.get(i).getColor());
            cot.addElement(cotizaciones.get(i).getMontoTotal());

            for (int j = 0; j < eventos.size(); j++) {
                if (eventos.get(j).getIdEvento().equals(cotizaciones.get(i).getEventoIdEvento())) {
                    cot.addElement(cotizaciones.get(i).getEventoIdEvento() + ", " + eventos.get(j).getDescripcion());
                    cot.addElement(eventos.get(j).getFecha());
                    cot.addElement(eventos.get(j).getHoraInicio());
                    cot.addElement(eventos.get(j).getHoraFin());
                    for (Empleado ejecutivo : ejecutivos) {
                        if (ejecutivo.getCedula().equals(eventos.get(j).getEjecutivoCedula())) {
                            cot.addElement(ejecutivo.getCedula() + ", " + ejecutivo.getNombre() + " " + ejecutivo.getApellido());
                        }
                    }
                }
            }

            if (cotizaciones.get(i).getClienteCompaniaRif().equals("")) {
                cot.addElement("--");
            } else {
                for (int j = 0; j < companias.size(); j++) {
                    if (companias.get(j).getRif().equals(cotizaciones.get(i).getClienteCompaniaRif())) {
                        cot.addElement(cotizaciones.get(i).getClienteCompaniaRif() + ", " + companias.get(j).getNombre());
                    }
                }
            }

            if (cotizaciones.get(i).getClienteParticularCedula().equals(0)) {
                cot.addElement("--");
            } else {
                for (int k = 0; k < particulares.size(); k++) {
                    if (particulares.get(k).getCedula().equals(cotizaciones.get(i).getClienteParticularCedula())) {
                        cot.addElement(cotizaciones.get(i).getClienteParticularCedula() + ", " + particulares.get(k).getNombre() + " " + particulares.get(k).getApellido());
                    }
                }
            }

            dm.addRow(cot);
        }
        tablaCotizaciones.setModel(dm);
    }

    private void redimensionarTabla(JTable tabla) {
        TableColumn column = null;
        for (int i = 0; i < 12; i++) {
            column = tabla.getColumnModel().getColumn(i);

            switch (i) {
                case 0:
                    column.setPreferredWidth(15);
                    break;

                case 1:
                    column.setPreferredWidth(30);
                    break;

                case 2:
                    column.setPreferredWidth(60);
                    break;

                case 3:
                    column.setPreferredWidth(30);
                    break;

                case 4:
                    column.setPreferredWidth(55);
                    break;

                case 5:
                    column.setPreferredWidth(100);
                    break;

                case 6:
                    column.setPreferredWidth(60);
                    break;

                case 7:
                    column.setPreferredWidth(40);
                    break;

                case 8:
                    column.setPreferredWidth(30);
                    break;

                case 9:
                    column.setPreferredWidth(120);
                    break;

                case 10:
                    column.setPreferredWidth(120);
                    break;

                case 11:
                    column.setPreferredWidth(120);
                    break;

            }
        }
    }

    private void cargarTablaParticulares(List<ClienteParticular> particulares) {

        DefaultTableModel dm = new DefaultTableModel();

        dm.addColumn("Cedula");
        dm.addColumn("Nombre");
        dm.addColumn("Apellido");
        dm.addColumn("Direccion");
        dm.addColumn("Telefono");
        dm.addColumn("Sexo");
        dm.addColumn("Fecha Nacimiento");

        for (int i = 0; i < particulares.size(); i++) {
            Vector part = new Vector();
            part.addElement(particulares.get(i).getCedula());
            part.addElement(particulares.get(i).getNombre());
            part.addElement(particulares.get(i).getApellido());
            part.addElement(particulares.get(i).getDireccion());
            part.addElement(particulares.get(i).getTelefono());
            part.addElement(particulares.get(i).getSexo());
            part.addElement(particulares.get(i).getFechaNacimiento());

            dm.addRow(part);
        }
        tablaParticulares.setModel(dm);
    }

    private void cargarTablaCompanias(List<ClienteCompania> companias) {

        DefaultTableModel dm = new DefaultTableModel();

        dm.addColumn("Rif");
        dm.addColumn("Nombre");
        dm.addColumn("Direccion");
        dm.addColumn("Telefono");

        for (int i = 0; i < companias.size(); i++) {
            Vector comp = new Vector();
            comp.addElement(companias.get(i).getRif());
            comp.addElement(companias.get(i).getNombre());
            comp.addElement(companias.get(i).getDireccion());
            comp.addElement(companias.get(i).getTelefono());

            dm.addRow(comp);
        }
        tablaCompanias.setModel(dm);
    }

    private void cargarTablaAtencionPart(List<ClienteParticular> particulares, List<ClienteCompania> companias,
            List<Empleado> ejecutivos, List<Cotizacion> cotizaciones, List<Evento> eventos) {

        DefaultTableModel dm = new DefaultTableModel();
        dm.addColumn("EVENTO");
        dm.addColumn("Fecha Evento");
        dm.addColumn("Hora Inicio");
        dm.addColumn("Hora Fin");
        dm.addColumn("Ejecutivo");

        dm.addColumn("Cliente Compania");
        dm.addColumn("Cliente Particular");

        for (int i = 0; i < cotizaciones.size(); i++) {
            Vector cot = new Vector();

            for (int j = 0; j < eventos.size(); j++) {
                if (eventos.get(j).getIdEvento().equals(cotizaciones.get(i).getEventoIdEvento())) {
                    cot.addElement(cotizaciones.get(i).getEventoIdEvento() + ", " + eventos.get(j).getDescripcion());
                    cot.addElement(eventos.get(j).getFecha());
                    cot.addElement(eventos.get(j).getHoraInicio());
                    cot.addElement(eventos.get(j).getHoraFin());
                }
            }

            for (int j = 0; j < eventos.size(); j++) {
                if (eventos.get(j).getIdEvento().equals(cotizaciones.get(i).getEventoIdEvento())) {
                    for (int k = 0; k < ejecutivos.size(); k++) {
                        if (eventos.get(j).getEjecutivoCedula().equals(ejecutivos.get(k).getCedula())) {
                            cot.addElement(eventos.get(j).getEjecutivoCedula() + ", " + ejecutivos.get(k).getNombre() + " " + ejecutivos.get(k).getApellido());
                        }
                    }
                }
            }

            if (cotizaciones.get(i).getClienteCompaniaRif().equals("")) {
                cot.addElement("--");
            } else {
                for (int j = 0; j < companias.size(); j++) {
                    if (companias.get(j).getRif().equals(cotizaciones.get(i).getClienteCompaniaRif())) {
                        cot.addElement(cotizaciones.get(i).getClienteCompaniaRif() + ", " + companias.get(j).getNombre());
                    }
                }
            }
            if (cotizaciones.get(i).getClienteParticularCedula().equals(0)) {
                cot.addElement("--");
            } else {
                for (int k = 0; k < particulares.size(); k++) {
                    if (particulares.get(k).getCedula().equals(cotizaciones.get(i).getClienteParticularCedula())) {
                        cot.addElement(cotizaciones.get(i).getClienteParticularCedula() + ", " + particulares.get(k).getNombre() + " " + particulares.get(k).getApellido());
                    }
                }
            }
            dm.addRow(cot);
        }

        tablaAtencionPart.setModel(dm);
    }

    private void cargarCedulasEjecutivosPart() {

        cedulasEjecutivosPart.setVisible(false);
        if (cedulasEjecutivosPart.isPopupVisible() != true) {
            cedulasEjecutivosPart.removeAllItems();
        }
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            for (int i = 0; i < ejecutivos.size(); i++) {
                Integer Cedula = ejecutivos.get(i).getCedula();
                cedulasEjecutivosPart.addItem(Cedula + ", " + ejecutivos.get(i).getNombre() + " " + ejecutivos.get(i).getApellido());
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
        cedulasEjecutivosPart.setVisible(true);
    }

    private void cargarCedulasEjecutivosEventos() {

        jComboBoxEjecutivos.setVisible(false);
        if (jComboBoxEjecutivos.isPopupVisible() != true) {
            jComboBoxEjecutivos.removeAllItems();
        }
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            for (int i = 0; i < ejecutivos.size(); i++) {
                Integer Cedula = ejecutivos.get(i).getCedula();
                jComboBoxEjecutivos.addItem(Cedula + ", " + ejecutivos.get(i).getNombre() + " " + ejecutivos.get(i).getApellido());
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
        jComboBoxEjecutivos.setVisible(true);
    }

    private void cargarIdEventoCot() {

        try {
            controlEvento = new ControlEvento();
            List<Evento> eventos = controlEvento.consultarEventos();
            for (int i = 0; i < eventos.size(); i++) {
                Integer Id = eventos.get(i).getIdEvento();
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void cargarCedulasEjecutivosComp() {

        cedulasEjecutivosComp.setVisible(false);
        if (cedulasEjecutivosComp.isPopupVisible() != true) {
            cedulasEjecutivosComp.removeAllItems();
        }
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            for (int i = 0; i < ejecutivos.size(); i++) {
                Integer Cedula = ejecutivos.get(i).getCedula();
                cedulasEjecutivosComp.addItem(Cedula + ", " + ejecutivos.get(i).getNombre() + " " + ejecutivos.get(i).getApellido());
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
        cedulasEjecutivosComp.setVisible(true);
    }

    private void cargarCedulasEjecutivosEvento() {

        cedulaEjec2.setVisible(false);
        if (cedulaEjec2.isPopupVisible() != true) {
            cedulaEjec2.removeAllItems();
        }
        try {
            controlEmpleado = new ControlEmpleado();
            List<Empleado> ejecutivos = controlEmpleado.consultarEjecutivos();
            for (int i = 0; i < ejecutivos.size(); i++) {
                Integer Cedula = ejecutivos.get(i).getCedula();
                String Nombre = ejecutivos.get(i).getNombre() + " " + ejecutivos.get(i).getApellido();
                cedulaEjec2.addItem(Cedula + ", " + Nombre);
            }
        } catch (IOException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(InformacionSistema.class.getName()).log(Level.SEVERE, null, ex);
        }
        cedulaEjec2.setVisible(true);
    }

    private void redimensionarTabla() {
        TableColumn column = null;
        for (int i = 0; i < 5; i++) {
            column = tablaEjecutivos.getColumnModel().getColumn(i);
            if (i == 2) {
                column.setPreferredWidth(100); //sport column is bigger
            } else {
                column.setPreferredWidth(50);
            }
        }
    }

    private void validarCampos() {
        CampoNumerico cn = new CampoNumerico();
        cn.validarCampo(cedula);
        cn.validarCampo(telefono);
        cn.validarCampo(cedulaC);
        cn.validarCampo(telefonoC);
        cn.validarCampo(cedulaParticular);
        cn.validarCampo(telefonoParticular);
        cn.validarCampo(telefonoCompania);
        cn.validarCampo(telefonoComp2);
    }

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new InformacionSistema().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton ModificarCompania;
    private javax.swing.JButton ModificarCotizacion;
    private javax.swing.JButton ModificarEvento;
    private javax.swing.JButton ModificarParticular;
    private javax.swing.JMenuItem acercaDe;
    private javax.swing.JTextField apellido;
    private javax.swing.JTextField apellido2;
    private javax.swing.JTextField apellidoC;
    private javax.swing.JTextField apellidoC2;
    private javax.swing.JLabel apellidoContratado;
    private javax.swing.JLabel apellidoEjecutivo;
    private javax.swing.JTextField apellidoPart2;
    private javax.swing.JTextField apellidoParticular;
    private javax.swing.JMenu archivo;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JTextField cargo;
    private javax.swing.JTextField cargo2;
    private javax.swing.JLabel cargoContratado;
    private javax.swing.JLabel cedPartCotLabel;
    private javax.swing.JTextField cedula;
    private javax.swing.JTextField cedulaC;
    private javax.swing.JLabel cedulaC2;
    private javax.swing.JLabel cedulaContratado;
    private javax.swing.JComboBox cedulaEjec2;
    private javax.swing.JLabel cedulaEjecutivo;
    private javax.swing.JLabel cedulaEjecutivo2;
    private javax.swing.JLabel cedulaPart2;
    private javax.swing.JTextField cedulaParticular;
    private javax.swing.JComboBox cedulasEjecutivosComp;
    private javax.swing.JComboBox cedulasEjecutivosPart;
    private javax.swing.JCheckBox checkApellido;
    private javax.swing.JCheckBox checkApellidoC;
    private javax.swing.JCheckBox checkApellidoPart;
    private javax.swing.JCheckBox checkCargo;
    private javax.swing.JCheckBox checkCedulaE;
    private javax.swing.JCheckBox checkColor;
    private javax.swing.JCheckBox checkCosto;
    private javax.swing.JCheckBox checkDescripcionE;
    private javax.swing.JCheckBox checkDireccionComp;
    private javax.swing.JCheckBox checkDireccionPart;
    private javax.swing.JCheckBox checkEstatus;
    private javax.swing.JCheckBox checkEstatusContratado;
    private javax.swing.JCheckBox checkEstatusEjecutivo;
    private javax.swing.JCheckBox checkFechaE;
    private javax.swing.JCheckBox checkHoraFinE;
    private javax.swing.JCheckBox checkHoraInicioE;
    private javax.swing.JCheckBox checkNombre;
    private javax.swing.JCheckBox checkNombreC;
    private javax.swing.JCheckBox checkNombreComp;
    private javax.swing.JCheckBox checkNombrePart;
    private javax.swing.JCheckBox checkSalario;
    private javax.swing.JCheckBox checkTelefono;
    private javax.swing.JCheckBox checkTelefonoC;
    private javax.swing.JCheckBox checkTelefonoComp;
    private javax.swing.JCheckBox checkTelefonoPart;
    private javax.swing.JTextField colorCot2;
    private javax.swing.JLabel colorCotLabel;
    private javax.swing.JTextField costo;
    private javax.swing.JTextField costo2;
    private javax.swing.JLabel costoContratado;
    private javax.swing.JTextField descripcion2;
    private javax.swing.JTextArea direccionComp2;
    private javax.swing.JTextField direccionCompania;
    private javax.swing.JTextField direccionPart2;
    private javax.swing.JTextField direccionParticular;
    private javax.swing.JButton eliminarCotizacion;
    private javax.swing.JButton eliminarEjecutivo;
    private javax.swing.JButton eliminarEjecutivo1;
    private javax.swing.JLabel estatusCotLabel;
    private javax.swing.JComboBox estatusCotizacion2;
    private javax.swing.JMenuItem exit;
    private javax.swing.JLabel fechaCotLabel;
    private com.toedter.calendar.JDateChooser fechaEvento2;
    private javax.swing.JTextField horaFin2;
    private javax.swing.JTextField horaInicio2;
    private javax.swing.JLabel idCot2;
    private javax.swing.JLabel idCotLabel;
    private javax.swing.JLabel idEventoCotLabel;
    private javax.swing.JLabel idLabel2;
    private javax.swing.JMenuItem informacionSistema;
    private javax.swing.JButton insertarCompania;
    private javax.swing.JButton insertarEjecutivo;
    private javax.swing.JButton insertarEjecutivo1;
    private javax.swing.JButton insertarEjecutivo2;
    private javax.swing.JButton insertarEjecutivo3;
    private javax.swing.JButton insertarParticular;
    private javax.swing.JButton jButton1;
    private javax.swing.JCheckBox jCheckBoxEvento;
    private javax.swing.JCheckBox jCheckBoxLugar;
    private javax.swing.JComboBox jComboBoxEjecutivos;
    private javax.swing.JComboBox jComboBoxEstatusContratado;
    private javax.swing.JComboBox jComboBoxEstatusEjecutivo;
    private javax.swing.JComboBox jComboBoxSexo;
    private com.toedter.calendar.JDateChooser jDateChooserNac;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel100;
    private javax.swing.JLabel jLabel101;
    private javax.swing.JLabel jLabel102;
    private javax.swing.JLabel jLabel103;
    private javax.swing.JLabel jLabel104;
    private javax.swing.JLabel jLabel105;
    private javax.swing.JLabel jLabel106;
    private javax.swing.JLabel jLabel107;
    private javax.swing.JLabel jLabel108;
    private javax.swing.JLabel jLabel109;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel132;
    private javax.swing.JLabel jLabel133;
    private javax.swing.JLabel jLabel134;
    private javax.swing.JLabel jLabel135;
    private javax.swing.JLabel jLabel136;
    private javax.swing.JLabel jLabel137;
    private javax.swing.JLabel jLabel138;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel140;
    private javax.swing.JLabel jLabel141;
    private javax.swing.JLabel jLabel142;
    private javax.swing.JLabel jLabel145;
    private javax.swing.JLabel jLabel146;
    private javax.swing.JLabel jLabel147;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel78;
    private javax.swing.JLabel jLabel79;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel80;
    private javax.swing.JLabel jLabel81;
    private javax.swing.JLabel jLabel82;
    private javax.swing.JLabel jLabel83;
    private javax.swing.JLabel jLabel84;
    private javax.swing.JLabel jLabel85;
    private javax.swing.JLabel jLabel86;
    private javax.swing.JLabel jLabel87;
    private javax.swing.JLabel jLabel88;
    private javax.swing.JLabel jLabel89;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabel90;
    private javax.swing.JLabel jLabel91;
    private javax.swing.JLabel jLabel92;
    private javax.swing.JLabel jLabel93;
    private javax.swing.JLabel jLabel94;
    private javax.swing.JLabel jLabel95;
    private javax.swing.JLabel jLabel96;
    private javax.swing.JLabel jLabel97;
    private javax.swing.JLabel jLabel98;
    private javax.swing.JLabel jLabel99;
    private javax.swing.JLabel jLabelCedulaAtencion;
    private javax.swing.JLabel jLabelCedulaCliente;
    private javax.swing.JLabel jLabelNombreAtencion;
    private javax.swing.JLabel jLabelNombreCliente;
    private javax.swing.JLabel jLabelTelefonoAtencion;
    private javax.swing.JLabel jLabelTelefonoCliente;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem2;
    private com.toedter.calendar.JMonthChooser jMonthChooserEvento;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel26;
    private javax.swing.JPanel jPanel27;
    private javax.swing.JPanel jPanel28;
    private javax.swing.JPanel jPanel29;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel30;
    private javax.swing.JPanel jPanel31;
    private javax.swing.JPanel jPanel32;
    private javax.swing.JPanel jPanel33;
    private javax.swing.JPanel jPanel34;
    private javax.swing.JPanel jPanel35;
    private javax.swing.JPanel jPanel36;
    private javax.swing.JPanel jPanel37;
    private javax.swing.JPanel jPanel38;
    private javax.swing.JPanel jPanel39;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel40;
    private javax.swing.JPanel jPanel41;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextArea jTextAreaDireccionAtencion;
    private javax.swing.JTextArea jTextAreaDireccionCliente;
    private javax.swing.JTextArea jTextAreaLugar;
    private com.toedter.calendar.JYearChooser jYearChooserEvento;
    private com.toedter.calendar.JYearChooser jYearChooserServicios;
    private javax.swing.JButton limpiar;
    private javax.swing.JButton limpiar1;
    private javax.swing.JButton limpiar6;
    private javax.swing.JButton limpiar8;
    private javax.swing.JButton mostrarAtencionPart;
    private javax.swing.JButton mostrarCompanias;
    private javax.swing.JButton mostrarContratados;
    private javax.swing.JButton mostrarContratados1;
    private javax.swing.JButton mostrarContratados2;
    private javax.swing.JButton mostrarContratados3;
    private javax.swing.JButton mostrarCotizaciones;
    private javax.swing.JButton mostrarEjecutivos;
    private javax.swing.JTextField nombre;
    private javax.swing.JTextField nombre2;
    private javax.swing.JTextField nombreC;
    private javax.swing.JTextField nombreC2;
    private javax.swing.JTextField nombreComp2;
    private javax.swing.JTextField nombreCompania;
    private javax.swing.JLabel nombreContratado;
    private javax.swing.JLabel nombreEjecutivo;
    private javax.swing.JTextField nombrePart2;
    private javax.swing.JTextField nombreParticular;
    private javax.swing.JMenuItem nuevaCotizacion;
    private javax.swing.JLabel rifComp2;
    private javax.swing.JLabel rifCompCotLabel;
    private javax.swing.JTextField rifCompania;
    private javax.swing.JTextField salario;
    private javax.swing.JTextField salario2;
    private javax.swing.JLabel salarioEjecutivo;
    private javax.swing.JButton salir;
    private javax.swing.JTable tablaAtencionPart;
    private javax.swing.JTable tablaClientesCompServicios;
    private javax.swing.JTable tablaClientesPartServicios;
    private javax.swing.JTable tablaCompanias;
    private javax.swing.JTable tablaContratados;
    private javax.swing.JTable tablaCotizaciones;
    private javax.swing.JTable tablaCronogramaEventos;
    private javax.swing.JTable tablaEjecutivos;
    private javax.swing.JTable tablaEventos;
    private javax.swing.JTable tablaParticulares;
    private javax.swing.JTextField telefono;
    private javax.swing.JTextField telefono2;
    private javax.swing.JTextField telefonoC;
    private javax.swing.JTextField telefonoC2;
    private javax.swing.JTextField telefonoComp2;
    private javax.swing.JTextField telefonoCompania;
    private javax.swing.JLabel telefonoContratado;
    private javax.swing.JLabel telefonoEjecutivo;
    private javax.swing.JTextField telefonoPart2;
    private javax.swing.JTextField telefonoParticular;
    // End of variables declaration//GEN-END:variables
}
